70 references to Current
IdeBenchmarks (2)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (2)
162
if (Application.
Current
== null)
190
_wpfApp = Application.
Current
;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
111
ComponentsDispatcher = new WpfDispatcher(Application.
Current
.Dispatcher);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (3)
185
if (Application.
Current
!= null && Application.
Current
.MainWindow != null)
187
_rootDependencyObject = Application.
Current
.MainWindow;
PresentationFramework (63)
Microsoft\Win32\CommonDialog.cs (2)
86
if (Application.
Current
!= null)
88
hwndOwner = Application.
Current
.ParkingHwnd;
MS\Internal\AppModel\AppSecurityManager.cs (1)
201
if (Application.
Current
.MimeType != MimeType.Document)
MS\Internal\AppModel\OleCmdHelper.cs (10)
62
if (Application.
Current
== null || Application.IsShuttingDown == true)
87
bool enabled = (bool)Application.
Current
.Dispatcher.Invoke(
94
if (Application.
Current
.MainWindow == null)
96
IInputElement target = FocusManager.GetFocusedElement(Application.
Current
.MainWindow);
100
target = (IInputElement)Application.
Current
.MainWindow;
111
if (Application.
Current
== null || Application.IsShuttingDown == true)
116
int hresult = (int)Application.
Current
.Dispatcher.Invoke(
143
if (Application.
Current
.MainWindow == null)
145
IInputElement target = FocusManager.GetFocusedElement(Application.
Current
.MainWindow);
149
target = (IInputElement)Application.
Current
.MainWindow;
MS\Internal\AppModel\SecurityMgrSite.cs (2)
26
if (Application.
Current
!= null)
28
Window curWindow = Application.
Current
.MainWindow;
MS\Internal\Helper.cs (2)
86
Application app = Application.
Current
;
92
object appResource = Application.
Current
.FindResourceInternal(keys[k]);
MS\Internal\Printing\Win32PrintDialog.cs (3)
60
if ((System.Windows.Application.
Current
!= null) &&
61
(System.Windows.Application.
Current
.MainWindow != null))
64
new System.Windows.Interop.WindowInteropHelper(System.Windows.Application.
Current
.MainWindow);
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
36
baseStyle = Application.
Current
.FindResource(typeof(CheckBox)) as Style;
68
baseStyle = Application.
Current
.FindResource(typeof(CheckBox)) as Style;
System\Windows\Controls\DocumentViewer.cs (3)
2209
if (Application.
Current
!= null && Application.
Current
.CheckAccess())
2211
wnd = Application.
Current
.MainWindow;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12058
Application app = Application.
Current
;
System\Windows\Documents\TextStore.cs (1)
4705
Application app = Application.
Current
;
System\Windows\FrameworkContentElement.cs (1)
73
Application app = Application.
Current
;
System\Windows\FrameworkElement.cs (2)
129
Application app = Application.
Current
;
1066
Application app = Application.
Current
;
System\Windows\Interop\BrowserInteropHelper.cs (1)
69
return Application.
Current
?.MimeType == MimeType.Markup;
System\Windows\Navigation\NavigationService.cs (4)
478
if (Application.
Current
== null)
487
INavigatorBase navigator = FindTargetInWindowCollection(Application.
Current
.WindowsInternal.Clone(), targetName);
493
navigator = FindTargetInWindowCollection(Application.
Current
.NonAppWindowsInternal.Clone(), targetName);
3397
get { return Application.
Current
; }
System\Windows\Shell\JumpList.cs (1)
441
if (_application == Application.
Current
&& _initializing == false)
System\Windows\Standard\Debug.cs (1)
366
if (System.Windows.Application.
Current
.Dispatcher.CheckAccess())
System\Windows\SystemResources.cs (2)
1901
lock (((ICollection)Application.
Current
.Resources).SyncRoot)
1910
lock (((ICollection)Application.
Current
.Resources).SyncRoot)
System\Windows\ThemeManager.cs (20)
20
bool useLightColors = GetUseLightColors(Application.
Current
.ThemeMode);
22
FluentThemeState newFluentThemeState = new FluentThemeState(Application.
Current
.ThemeMode.Value, useLightColors);
26
AddOrUpdateThemeResources(Application.
Current
.Resources, GetThemeDictionary(Application.
Current
.ThemeMode));
29
foreach (Window window in Application.
Current
.Windows)
85
AddOrUpdateThemeResources(Application.
Current
.Resources, GetThemeDictionary(newThemeMode));
87
foreach (Window window in Application.
Current
.Windows)
120
ThemeMode themeMode = GetThemeModeFromResourceDictionary(Application.
Current
.Resources);
122
if (Application.
Current
.ThemeMode != themeMode)
124
Application.
Current
.ThemeMode = themeMode;
154
useLightColors = GetUseLightColors(Application.
Current
.ThemeMode);
200
return Application.
Current
!= null && LastIndexOfFluentThemeDictionary(Application.
Current
.Resources) != -1;
210
if (Application.
Current
== null)
213
IEnumerable<int> indices = FindAllFluentThemeResourceDictionaryIndices(Application.
Current
.Resources);
217
Application.
Current
.Resources.MergedDictionaries.RemoveAt(index);
220
foreach (Window window in Application.
Current
.Windows)
267
bool useLightColors = GetUseLightColors(Application.
Current
.ThemeMode);
312
if (Application.
Current
== null)
314
return Application.
Current
.ThemeMode != ThemeMode.None;
System\Windows\Window.cs (4)
3685
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4540
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
7219
get {return System.Windows.Application.
Current
;}
7229
return (Application.
Current
!= null);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
191
System.Windows.Application.
Current
.MainWindow);