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