69 references to Current
IdeBenchmarks (2)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (2)
162if (Application.Current == null) 190_wpfApp = Application.Current;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (3)
185if (Application.Current != null && Application.Current.MainWindow != null) 187_rootDependencyObject = Application.Current.MainWindow;
PresentationFramework (63)
Microsoft\Win32\CommonDialog.cs (2)
89if (Application.Current != null) 91hwndOwner = Application.Current.ParkingHwnd;
MS\Internal\AppModel\AppSecurityManager.cs (1)
210if (Application.Current.MimeType != MimeType.Document)
MS\Internal\AppModel\OleCmdHelper.cs (10)
68if (Application.Current == null || Application.IsShuttingDown == true) 93bool enabled = (bool)Application.Current.Dispatcher.Invoke( 100if (Application.Current.MainWindow == null) 102IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 106target = (IInputElement)Application.Current.MainWindow; 117if (Application.Current == null || Application.IsShuttingDown == true) 122int hresult = (int)Application.Current.Dispatcher.Invoke( 149if (Application.Current.MainWindow == null) 151IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 155target = (IInputElement)Application.Current.MainWindow;
MS\Internal\AppModel\SecurityMgrSite.cs (2)
30if (Application.Current != null) 32Window curWindow = Application.Current.MainWindow;
MS\Internal\Helper.cs (2)
95Application app = Application.Current; 101object appResource = Application.Current.FindResourceInternal(keys[k]);
MS\Internal\Printing\Win32PrintDialog.cs (3)
62if ((System.Windows.Application.Current != null) && 63(System.Windows.Application.Current.MainWindow != null)) 66new System.Windows.Interop.WindowInteropHelper(System.Windows.Application.Current.MainWindow);
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
40baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 72baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style;
System\Windows\Controls\DocumentViewer.cs (3)
2221if (Application.Current != null && Application.Current.CheckAccess()) 2223wnd = Application.Current.MainWindow;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12063Application app = Application.Current;
System\Windows\Documents\TextStore.cs (1)
4716Application app = Application.Current;
System\Windows\FrameworkContentElement.cs (1)
85Application app = Application.Current;
System\Windows\FrameworkElement.cs (2)
140Application app = Application.Current; 1077Application app = Application.Current;
System\Windows\Interop\BrowserInteropHelper.cs (1)
69return Application.Current?.MimeType == MimeType.Markup;
System\Windows\Navigation\NavigationService.cs (4)
487if (Application.Current == null) 496INavigatorBase navigator = FindTargetInWindowCollection(Application.Current.WindowsInternal.Clone(), targetName); 502navigator = FindTargetInWindowCollection(Application.Current.NonAppWindowsInternal.Clone(), targetName); 3406get { return Application.Current; }
System\Windows\Shell\JumpList.cs (1)
450if (_application == Application.Current && _initializing == false)
System\Windows\Standard\Debug.cs (1)
370if (System.Windows.Application.Current.Dispatcher.CheckAccess())
System\Windows\SystemResources.cs (2)
1908lock (((ICollection)Application.Current.Resources).SyncRoot) 1917lock (((ICollection)Application.Current.Resources).SyncRoot)
System\Windows\ThemeManager.cs (20)
27bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 29FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.ThemeMode.Value, useLightColors); 36AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.ThemeMode)); 38foreach (Window window in Application.Current.Windows) 94AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(newThemeMode)); 96foreach (Window window in Application.Current.Windows) 129ThemeMode themeMode = GetThemeModeFromResourceDictionary(Application.Current.Resources); 131if (Application.Current.ThemeMode != themeMode) 133Application.Current.ThemeMode = themeMode; 163useLightColors = GetUseLightColors(Application.Current.ThemeMode); 209return Application.Current != null && LastIndexOfFluentThemeDictionary(Application.Current.Resources) != -1; 219if (Application.Current == null) 222IEnumerable<int> indices = FindAllFluentThemeResourceDictionaryIndices(Application.Current.Resources); 226Application.Current.Resources.MergedDictionaries.RemoveAt(index); 229foreach (Window window in Application.Current.Windows) 276bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 321if (Application.Current == null) 323return Application.Current.ThemeMode != ThemeMode.None;
System\Windows\Window.cs (4)
3698if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 4553if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 7232get {return System.Windows.Application.Current;} 7242return (Application.Current != null);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
198System.Windows.Application.Current.MainWindow);