private void Controller_ShowWindowEvent() { Dispatcher.BeginInvoke((Action)delegate { Show(); Activate(); BringIntoView(); if (WindowState == System.Windows.WindowState.Minimized) { WindowState = System.Windows.WindowState.Normal; } }); }