icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

don't access Application.Current.MainWindow, causes cross-thread-exce… #95

Closed LukeOrdelmans closed 1 year ago

LukeOrdelmans commented 1 year ago

don't access Application.Current.MainWindow, causes cross-thread-exception in application with multi-threaded UI

nb. not sure if setting the Owner is required at all, but this way is minimizes impact of the change