72 references to Current
PresentationFramework (71)
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)
4729Application app = Application.Current;
System\Windows\DwmColorization.cs (23)
110Application.Current.Resources["TextOnAccentFillColorPrimary"] = 113Application.Current.Resources["TextOnAccentFillColorSecondary"] = 116Application.Current.Resources["TextOnAccentFillColorDisabled"] = 119Application.Current.Resources["TextOnAccentFillColorSelectedText"] = 122Application.Current.Resources["AccentTextFillColorDisabled"] = 130Application.Current.Resources["TextOnAccentFillColorPrimary"] = 133Application.Current.Resources["TextOnAccentFillColorSecondary"] = 136Application.Current.Resources["TextOnAccentFillColorDisabled"] = 139Application.Current.Resources["TextOnAccentFillColorSelectedText"] = 142Application.Current.Resources["AccentTextFillColorDisabled"] = 146Application.Current.Resources["SystemAccentColor"] = systemAccent; 147Application.Current.Resources["SystemAccentColorPrimary"] = primaryAccent; 148Application.Current.Resources["SystemAccentColorSecondary"] = secondaryAccent; 149Application.Current.Resources["SystemAccentColorTertiary"] = tertiaryAccent; 151Application.Current.Resources["SystemAccentBrush"] = ToBrush(systemAccent); 152Application.Current.Resources["SystemFillColorAttentionBrush"] = ToBrush(secondaryAccent); 153Application.Current.Resources["AccentTextFillColorPrimaryBrush"] = ToBrush(tertiaryAccent); 154Application.Current.Resources["AccentTextFillColorSecondaryBrush"] = ToBrush(tertiaryAccent); 155Application.Current.Resources["AccentTextFillColorTertiaryBrush"] = ToBrush(secondaryAccent); 156Application.Current.Resources["AccentFillColorSelectedTextBackgroundBrush"] = ToBrush(systemAccent); 157Application.Current.Resources["AccentFillColorDefaultBrush"] = ToBrush(secondaryAccent); 159Application.Current.Resources["AccentFillColorSecondaryBrush"] = ToBrush(secondaryAccent, 0.9); 160Application.Current.Resources["AccentFillColorTertiaryBrush"] = ToBrush(secondaryAccent, 0.8);
System\Windows\FrameworkContentElement.cs (1)
85Application app = Application.Current;
System\Windows\FrameworkElement.cs (2)
140Application app = Application.Current; 1070Application app = Application.Current;
System\Windows\Interop\BrowserInteropHelper.cs (1)
100Application app = Application.Current;
System\Windows\Navigation\NavigationService.cs (4)
489if (Application.Current == null) 498INavigatorBase navigator = FindTargetInWindowCollection(Application.Current.WindowsInternal.Clone(), targetName); 504navigator = FindTargetInWindowCollection(Application.Current.NonAppWindowsInternal.Clone(), targetName); 3408get { 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)
1888lock (((ICollection)Application.Current.Resources).SyncRoot) 1897lock (((ICollection)Application.Current.Resources).SyncRoot)
System\Windows\ThemeManager.cs (5)
19if (Application.Current != null) 21foreach (ResourceDictionary mergedDictionary in Application.Current.Resources.MergedDictionaries) 44Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = themeColorResourceUri }); 71windows = Application.Current?.Windows; 195ResourceDictionary currentDictionary = Application.Current?.Resources;
System\Windows\Window.cs (4)
3567if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 4435if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 7114get {return System.Windows.Application.Current;} 7124return (Application.Current != null);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
200System.Windows.Application.Current.MainWindow);