4 writes to MainWindow
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
168_wpfApp.MainWindow = new Window();
PresentationFramework (3)
System\Windows\Application.cs (1)
1727MainWindow = window;
System\Windows\Window.cs (2)
2200App.MainWindow = null; 3692App.MainWindow = this;
18 references to MainWindow
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
181_wpfApp.MainWindow.Content = _canvas;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
185if (Application.Current != null && Application.Current.MainWindow != null) 187_rootDependencyObject = Application.Current.MainWindow;
PresentationFramework (14)
MS\Internal\AppModel\OleCmdHelper.cs (6)
94if (Application.Current.MainWindow == null) 96IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 100target = (IInputElement)Application.Current.MainWindow; 143if (Application.Current.MainWindow == null) 145IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 149target = (IInputElement)Application.Current.MainWindow;
MS\Internal\AppModel\SecurityMgrSite.cs (1)
28Window curWindow = Application.Current.MainWindow;
MS\Internal\Printing\Win32PrintDialog.cs (2)
61(System.Windows.Application.Current.MainWindow != null)) 64new System.Windows.Interop.WindowInteropHelper(System.Windows.Application.Current.MainWindow);
System\Windows\Application.cs (1)
1725if (MainWindow == null)
System\Windows\Controls\DocumentViewer.cs (1)
2211wnd = Application.Current.MainWindow;
System\Windows\Window.cs (3)
2198if (IsInsideApp && this == App.MainWindow) 3690if (App.MainWindow == null) 4552|| ((App.MainWindow == this) && (App.ShutdownMode == ShutdownMode.OnMainWindowClose)))
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
191System.Windows.Application.Current.MainWindow);