I am using Window.ShowDialog() to open a modal window in my WPF (MVVM) application, but it lets me navigate to other windows using the Windows taskbar (Windows
Had to do a bit of modification. I had to set the owner and activate the window. Check for the pop up window and activate the window as given below.
var enumerator = Application.Current.Windows.GetEnumerator();
while (enumerator.MoveNext())
{
Window window = (Window)enumerator.Current;
if (window != null && window.GetType() == typeof(PopUpWindow))
{
window.Activate();
}
}