SyntaxFix
Write A Post
Hire A Developer
Questions
Well, instead of passing Application.Current.MainWindow, just pass a reference to whichever window it is you want: new WindowInteropHelper(this).Handle and so on.
Application.Current.MainWindow
new WindowInteropHelper(this).Handle