3 instantiations of Application
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
167
_wpfApp = new
Application
();
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1747
bamlType.DefaultConstructor = delegate() { return new System.Windows.
Application
(); };
System\Windows\Markup\KnownTypes.cs (1)
1129
case KnownElements.Application: o = new System.Windows.
Application
(); break;
202 references to Application
IdeBenchmarks (3)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (3)
43
private
Application
_wpfApp;
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 (9)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
147
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
56
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Dashboard\RenameDashboard.g.cs (1)
177
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
66
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
56
System.Windows.
Application
.LoadComponent(this, resourceLocater);
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (3)
185
if (
Application
.Current != null &&
Application
.Current.MainWindow != null)
187
_rootDependencyObject =
Application
.Current.MainWindow;
Microsoft.VisualStudio.LanguageServices (36)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
210
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
242
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
116
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
116
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
93
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
73
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
153
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
66
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
83
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
90
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
100
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
185
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
68
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
139
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
98
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
122
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
132
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (1)
186
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\MainDialog\PullMemberUpDialog.g.cs (1)
107
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
81
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
59
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
84
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
91
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
74
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
107
System.Windows.
Application
.LoadComponent(this, resourceLocater);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\AdvancedOptionPageControl.g.cs (1)
777
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
97
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
185
System.Windows.
Application
.LoadComponent(this, resourceLocater);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
621
System.Windows.
Application
.LoadComponent(Me, resourceLocater)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
145
System.Windows.
Application
.LoadComponent(Me, resourceLocater)
PresentationFramework (139)
Microsoft\Win32\CommonDialog.cs (2)
86
if (
Application
.Current != null)
88
hwndOwner =
Application
.Current.ParkingHwnd;
MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
61
return
Application
.LoadBamlStreamWithSyncInfo(stream, pc);
MS\Internal\AppModel\AppSecurityManager.cs (1)
201
if (
Application
.Current.MimeType != MimeType.Document)
MS\Internal\AppModel\ContentFilePart.cs (2)
33
Invariant.Assert(
Application
.ResourceAssembly != null, "If the entry assembly is null no ContentFileParts should be created");
104
entryLocation =
Application
.ResourceAssembly.Location;
MS\Internal\AppModel\Journaling.cs (1)
791
pageFunction =
Application
.LoadComponent(_markupUri, true) as PageFunctionBase;
MS\Internal\AppModel\JournalNavigationScope.cs (1)
496
get { return System.Windows.
Application
.IsShuttingDown; }
MS\Internal\AppModel\OleCmdHelper.cs (12)
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\ResourceContainer.cs (2)
50
Assembly asmApplication =
Application
.ResourceAssembly;
340
if (assembly.Equals(
Application
.ResourceAssembly))
MS\Internal\AppModel\SecurityMgrSite.cs (2)
26
if (
Application
.Current != null)
28
Window curWindow =
Application
.Current.MainWindow;
MS\Internal\Helper.cs (3)
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\Application.cs (2)
770
static public
Application
Current
2493
static private
Application
_appInstance;
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 (6)
12058
Application
app =
Application
.Current;
12333
Application
app = sender as
Application
;
12345
Application
app = sender as
Application
;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
288
public static IEnumerable<
Application
> GetApplicationOwners(ResourceDictionary dictionary)
290
return GetOwners<
Application
>(dictionary.ApplicationOwners, EmptyApplicationList);
318
private static IReadOnlyCollection<
Application
> EmptyApplicationList
319
=> Array.Empty<
Application
>();
System\Windows\Documents\TextStore.cs (6)
4705
Application
app =
Application
.Current;
4897
Application
app = sender as
Application
;
4909
Application
app = sender as
Application
;
System\Windows\FrameworkContentElement.cs (2)
73
Application
app =
Application
.Current;
System\Windows\FrameworkElement.cs (4)
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\Markup\Baml2006\Baml2006KnownTypes.cs (1)
106
case 12: t = () => typeof(
Application
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
6896
Type type = typeof(System.Windows.
Application
);
6898
this.GetXamlType(typeof(System.Windows.
Application
)), // DeclaringType
6905
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.
Application
)target).Resources = (System.Windows.ResourceDictionary)value; };
6906
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.
Application
)target).Resources; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1745
typeof(System.Windows.
Application
),
System\Windows\Markup\BamlRecordReader.cs (2)
4423
if (element is
Application
)
4425
((
Application
)element).ApplicationMarkupBaseUri = GetBaseUri();
System\Windows\Markup\KnownTypes.cs (1)
5566
case KnownElements.Application: t = typeof(System.Windows.
Application
); break;
System\Windows\Markup\XamlReader.cs (7)
479
Application
app = rootObject as
Application
;
933
RuntimeHelpers.RunClassConstructor(typeof(
Application
).TypeHandle);
948
Application
app = root as
Application
;
1095
Application
app = root as
Application
;
System\Windows\Navigation\NavigationService.cs (7)
478
if (
Application
.Current == null)
487
INavigatorBase navigator = FindTargetInWindowCollection(
Application
.Current.WindowsInternal.Clone(), targetName);
493
navigator = FindTargetInWindowCollection(
Application
.Current.NonAppWindowsInternal.Clone(), targetName);
1618
Application.PerformNavigationStateChangeTasks(true, false,
Application
.NavigationStateChange.Stopped);
3395
internal
Application
Application
3397
get { return
Application
.Current; }
3597
(
Application
.IsShuttingDown == true))
System\Windows\Navigation\NavigationWindow.cs (1)
1085
return System.Windows.
Application
.IsShuttingDown;
System\Windows\ResourceDictionary.cs (12)
1479
Application
app = owner as
Application
;
1548
Application
app = owner as
Application
;
1590
Application
app = owner as
Application
;
1670
Application
app = o as
Application
;
2016
Application
app = o as
Application
;
2060
Application
app = o as
Application
;
System\Windows\Shell\JumpList.cs (6)
214
public static void SetJumpList(
Application
application, JumpList value)
246
public static JumpList GetJumpList(
Application
application)
259
private static readonly Dictionary<
Application
, JumpList> s_applicationMap = new Dictionary<
Application
, JumpList>();
261
private
Application
_application;
441
if (_application ==
Application
.Current && _initializing == false)
System\Windows\Standard\Debug.cs (1)
366
if (System.Windows.
Application
.Current.Dispatcher.CheckAccess())
System\Windows\StaticResourceExtension.cs (1)
216
XamlType appXType = schemaContext.GetXamlType(typeof(
Application
));
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\ThemeMode.cs (5)
24
/// This is the default value for <see cref="
Application
.ThemeMode"/> and <see cref="Window.ThemeMode"/>
27
/// When <see cref="
Application
.ThemeMode"/> is not set to <see cref="None"/>,
36
/// Whenever this mode is set on <see cref="
Application
"/> or <see cref="Window"/>,
45
/// Whenever this mode is set on <see cref="
Application
"/> or <see cref="Window"/>,
54
/// Whenever this mode is set on <see cref="
Application
"/> or <see cref="Window"/>,
System\Windows\Window.cs (8)
559
/// <see cref="ThemeMode.None"/> - No Fluent theme is loaded. However, if <see cref="
Application
.ThemeMode"/> is not None,
560
/// then the window will appear as defined in <see cref="
Application
.ThemeMode"/>.
3685
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4540
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
5513
if (
Application
.IsShuttingDown)
7217
private System.Windows.
Application
App
7219
get {return System.Windows.
Application
.Current;}
7229
return (
Application
.Current != null);
PresentationUI (5)
artifacts\obj\PresentationUI\x86\Debug\net10.0\InstallationError.g.cs (1)
118
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS\Internal\Documents\FindToolBar.g.cs (1)
174
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationError.g.cs (1)
126
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationProgress.g.cs (1)
118
System.Windows.
Application
.LoadComponent(this, resourceLocater);
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
191
System.Windows.
Application
.Current.MainWindow);
Roslyn.VisualStudio.DiagnosticsWindow (4)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (1)
89
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (1)
81
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\PerfMargin\StatusIndicator.g.cs (1)
65
System.Windows.
Application
.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\VenusMargin\ProjectionBufferMargin.g.cs (1)
58
System.Windows.
Application
.LoadComponent(this, resourceLocater);