Quantcast
Channel: User Sinatr - Stack Overflow
Viewing all articles
Browse latest Browse all 609

Comment by Sinatr on Open and close 2 windows from another window in a right sequence

$
0
0
"using Focus() or Activate() on Window2 doesn't help" - in WPF certain actions needs to be queued via Dispatcher, calling those directly at inappropriate time simply won't work. Try to play with dispatcher priority (second parameter) in Application.Current.Dispatcher.InvokeAsync(() => ... code to activate ... ); when you are trying to activate another window from either close event or where you close it.

Viewing all articles
Browse latest Browse all 609

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>