public static void Popup(UIElement element, string title, Action ok) { var wtf = new WTFPopup(element, title, ok); Application.Current.MainWindow.Opacity = 0.5; wtf.ShowDialog(); }