I have a 700w x 300h WPF applciation and can drag it anywhere on my large screen.
When my application executes:
MessageBox.Show(\"Sorry, this functio
If your app has several windows, you might want to use Application.Current.MainWindow:
Application.Current.MainWindow
MessageBox.Show(Application.Current.MainWindow, "Can't login with given names.", "Login Failure", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.Cancel);