60 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;
Microsoft.VisualStudio.LanguageServices.CSharp (4)
SemanticSearch\SemanticSearchToolWindowImpl.cs (4)
204
Background = (Brush)Application.
Current
.FindResource(CommonControlsColors.TextBoxBackgroundBrushKey),
207
ImageThemingUtilities.SetImageBackgroundColor(outerGrid, (Color)Application.
Current
.Resources[CommonDocumentColors.PageBackgroundColorKey]);
239
BorderBrush = (Brush)Application.
Current
.Resources[EnvironmentColors.SystemHighlightBrushKey],
261
Style = (Style)Application.
Current
.FindResource(VsResourceKeys.ComboBoxStyleKey)
PresentationFramework (49)
Microsoft\Win32\CommonDialog.cs (2)
72
if (Application.
Current
!= null)
74
hwndOwner = Application.
Current
.ParkingHwnd;
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)
2160
if (Application.
Current
!= null && Application.
Current
.CheckAccess())
2162
wnd = Application.
Current
.MainWindow;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12037
Application app = Application.
Current
;
System\Windows\Documents\TextStore.cs (1)
4700
Application app = Application.
Current
;
System\Windows\FrameworkContentElement.cs (1)
64
Application app = Application.
Current
;
System\Windows\FrameworkElement.cs (2)
122
Application app = Application.
Current
;
1056
Application app = Application.
Current
;
System\Windows\Navigation\NavigationService.cs (4)
467
if (Application.
Current
== null)
476
INavigatorBase navigator = FindTargetInWindowCollection(Application.
Current
.WindowsInternal.Clone(), targetName);
482
navigator = FindTargetInWindowCollection(Application.
Current
.NonAppWindowsInternal.Clone(), targetName);
3344
get { return Application.
Current
; }
System\Windows\Shell\JumpList.cs (1)
438
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)
1882
lock (((ICollection)Application.
Current
.Resources).SyncRoot)
1891
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)
3667
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4521
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
7189
get {return System.Windows.Application.
Current
;}
7199
return (Application.
Current
!= null);
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
187
System.Windows.Application.
Current
.MainWindow);