3 writes to MainWindow
PresentationFramework (3)
src\Framework\System\Windows\Application.cs (1)
1822
MainWindow
= window;
src\Framework\System\Windows\Window.cs (2)
2241
App.
MainWindow
= null;
3763
App.
MainWindow
= this;
20 references to MainWindow
PresentationFramework (20)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
499
NavigationWindow window = Application.Current.
MainWindow
as NavigationWindow;
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (6)
114
if (Application.Current.
MainWindow
== null)
116
IInputElement target = FocusManager.GetFocusedElement(Application.Current.
MainWindow
);
120
target = (IInputElement)Application.Current.
MainWindow
;
171
if (Application.Current.
MainWindow
== null)
173
IInputElement target = FocusManager.GetFocusedElement(Application.Current.
MainWindow
);
177
target = (IInputElement)Application.Current.
MainWindow
;
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
962
string printJobDescription = GetPrintJobDescription(App.
MainWindow
);
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (1)
45
Window curWindow = Application.Current.
MainWindow
;
src\Framework\MS\Internal\AppModel\XappLauncher.cs (2)
116
MainWindow
.CommandBindings.Add(new CommandBinding(NavigationCommands.BrowseStop, new ExecutedRoutedEventHandler(OnCommandStop)));
117
MainWindow
.CommandBindings.Add(new CommandBinding(NavigationCommands.Refresh, new ExecutedRoutedEventHandler(OnCommandRefresh)));
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (2)
90
(System.Windows.Application.Current.
MainWindow
!= null))
93
new System.Windows.Interop.WindowInteropHelper(System.Windows.Application.Current.
MainWindow
);
src\Framework\System\Windows\Application.cs (1)
1820
if (
MainWindow
== null)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2278
wnd = Application.Current.
MainWindow
;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1359
_rbw.Value = Application.Current.
MainWindow
as RootBrowserWindow;
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
595
Invariant.Assert(_navigatorHost != null && _navigatorHost == Application.
MainWindow
&&
src\Framework\System\Windows\Window.cs (3)
2239
if (IsInsideApp && this == App.
MainWindow
)
3761
if (App.
MainWindow
== null)
4706
|| ((App.
MainWindow
== this) && (App.ShutdownMode == ShutdownMode.OnMainWindowClose)))