3 instantiations of Application
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
167_wpfApp = new Application();
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1763DefaultConstructor = delegate () { return new System.Windows.Application(); }
System\Windows\Markup\KnownTypes.cs (1)
1122case KnownElements.Application: o = new System.Windows.Application(); break;
189 references to Application
IdeBenchmarks (3)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (3)
43private Application _wpfApp; 162if (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 (5)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
147System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
56System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
66System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
56System.Windows.Application.LoadComponent(this, resourceLocater);
Microsoft.VisualStudio.LanguageServices (36)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
210System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
242System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
116System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
116System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
93System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
73System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
153System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
66System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
83System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
90System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
100System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
185System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
68System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
139System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
98System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
122System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
132System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (1)
186System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\MainDialog\PullMemberUpDialog.g.cs (1)
107System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
81System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
59System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
84System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
91System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
74System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
108System.Windows.Application.LoadComponent(this, resourceLocater);
Microsoft.VisualStudio.LanguageServices.CSharp (7)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\AdvancedOptionPageControl.g.cs (1)
705System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
97System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
185System.Windows.Application.LoadComponent(this, resourceLocater);
SemanticSearch\SemanticSearchToolWindowImpl.cs (4)
222Background = (Brush)Application.Current.FindResource(CommonControlsColors.TextBoxBackgroundBrushKey), 225ImageThemingUtilities.SetImageBackgroundColor(outerGrid, (Color)Application.Current.Resources[CommonDocumentColors.PageBackgroundColorKey]); 257BorderBrush = (Brush)Application.Current.Resources[EnvironmentColors.SystemHighlightBrushKey], 279Style = (Style)Application.Current.FindResource(VsResourceKeys.ComboBoxStyleKey)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
558System.Windows.Application.LoadComponent(Me, resourceLocater)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
145System.Windows.Application.LoadComponent(Me, resourceLocater)
PresentationFramework (123)
Microsoft\Win32\CommonDialog.cs (2)
71if (Application.Current != null) 73hwndOwner = Application.Current.ParkingHwnd;
MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
61return Application.LoadBamlStreamWithSyncInfo(stream, pc);
MS\Internal\AppModel\ContentFilePart.cs (2)
32Invariant.Assert(Application.ResourceAssembly != null, "If the entry assembly is null no ContentFileParts should be created"); 103entryLocation = Application.ResourceAssembly.Location;
MS\Internal\AppModel\Journaling.cs (1)
782pageFunction = Application.LoadComponent(_markupUri, true) as PageFunctionBase;
MS\Internal\AppModel\JournalNavigationScope.cs (1)
492get { return System.Windows.Application.IsShuttingDown; }
MS\Internal\AppModel\ResourceContainer.cs (2)
47Assembly asmApplication = Application.ResourceAssembly; 276if (assembly.Equals(Application.ResourceAssembly))
MS\Internal\Helper.cs (3)
85Application app = Application.Current; 91object appResource = Application.Current.FindResourceInternal(keys[k]);
MS\Internal\Printing\Win32PrintDialog.cs (3)
59if ((System.Windows.Application.Current != null) && 60(System.Windows.Application.Current.MainWindow != null)) 63new System.Windows.Interop.WindowInteropHelper(System.Windows.Application.Current.MainWindow);
System\Windows\Application.cs (2)
746public static Application Current 2416private static Application _appInstance;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
35baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 67baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style;
System\Windows\Controls\DocumentViewer.cs (3)
2159if (Application.Current != null && Application.Current.CheckAccess()) 2161wnd = Application.Current.MainWindow;
System\Windows\Controls\VirtualizingStackPanel.cs (6)
12036Application app = Application.Current; 12307Application app = sender as Application; 12319Application app = sender as Application;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
287public static IEnumerable<Application> GetApplicationOwners(ResourceDictionary dictionary) 289return GetOwners<Application>(dictionary.ApplicationOwners, EmptyApplicationList); 317private static IReadOnlyCollection<Application> EmptyApplicationList 318=> Array.Empty<Application>();
System\Windows\Documents\TextStore.cs (6)
4699Application app = Application.Current; 4887Application app = sender as Application; 4899Application app = sender as Application;
System\Windows\FrameworkContentElement.cs (2)
63Application app = Application.Current;
System\Windows\FrameworkElement.cs (4)
121Application app = Application.Current; 1055Application app = Application.Current;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
105case 12: t = () => typeof(Application); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
7419Type type = typeof(System.Windows.Application); 7421this.GetXamlType(typeof(System.Windows.Application)), // DeclaringType 7429SetDelegate = delegate (object target, object value) { ((System.Windows.Application)target).Resources = (System.Windows.ResourceDictionary)value; }, 7430GetDelegate = delegate (object target) { return ((System.Windows.Application)target).Resources; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1760typeof(System.Windows.Application),
System\Windows\Markup\BamlRecordReader.cs (2)
4413if (element is Application) 4415((Application)element).ApplicationMarkupBaseUri = GetBaseUri();
System\Windows\Markup\KnownTypes.cs (1)
5559case KnownElements.Application: t = typeof(System.Windows.Application); break;
System\Windows\Markup\XamlReader.cs (7)
479Application app = rootObject as Application; 940RuntimeHelpers.RunClassConstructor(typeof(Application).TypeHandle); 955Application app = root as Application; 1099Application app = root as Application;
System\Windows\Navigation\NavigationService.cs (7)
466if (Application.Current == null) 475INavigatorBase navigator = FindTargetInWindowCollection(Application.Current.WindowsInternal.Clone(), targetName); 481navigator = FindTargetInWindowCollection(Application.Current.NonAppWindowsInternal.Clone(), targetName); 1587Application.PerformNavigationStateChangeTasks(true, false, Application.NavigationStateChange.Stopped); 3341internal Application Application 3343get { return Application.Current; } 3537(Application.IsShuttingDown))
System\Windows\Navigation\NavigationWindow.cs (1)
1080return System.Windows.Application.IsShuttingDown;
System\Windows\ResourceDictionary.cs (12)
1480Application app = owner as Application; 1549Application app = owner as Application; 1591Application app = owner as Application; 1671Application app = o as Application; 2014Application app = o as Application; 2058Application app = o as Application;
System\Windows\Shell\JumpList.cs (6)
213public static void SetJumpList(Application application, JumpList value) 242public static JumpList GetJumpList(Application application) 255private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>(); 257private Application _application; 437if (_application == Application.Current && _initializing == false)
System\Windows\Standard\Debug.cs (1)
365if (System.Windows.Application.Current.Dispatcher.CheckAccess())
System\Windows\StaticResourceExtension.cs (1)
215XamlType appXType = schemaContext.GetXamlType(typeof(Application));
System\Windows\SystemResources.cs (2)
1881lock (((ICollection)Application.Current.Resources).SyncRoot) 1890lock (((ICollection)Application.Current.Resources).SyncRoot)
System\Windows\ThemeManager.cs (20)
23bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 25FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.ThemeMode.Value, useLightColors); 29AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.ThemeMode)); 32foreach (Window window in Application.Current.Windows) 88AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(newThemeMode)); 90foreach (Window window in Application.Current.Windows) 123ThemeMode themeMode = GetThemeModeFromResourceDictionary(Application.Current.Resources); 125if (Application.Current.ThemeMode != themeMode) 127Application.Current.ThemeMode = themeMode; 157useLightColors = GetUseLightColors(Application.Current.ThemeMode); 203return Application.Current != null && LastIndexOfFluentThemeDictionary(Application.Current.Resources) != -1; 213if (Application.Current == null) 216IEnumerable<int> indices = FindAllFluentThemeResourceDictionaryIndices(Application.Current.Resources); 220Application.Current.Resources.MergedDictionaries.RemoveAt(index); 223foreach (Window window in Application.Current.Windows) 270bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 322if (Application.Current == null) 324return Application.Current.ThemeMode != ThemeMode.None;
System\Windows\ThemeMode.cs (5)
23/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 26/// When <see cref="Application.ThemeMode"/> is not set to <see cref="None"/>, 35/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 44/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 53/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>,
System\Windows\Window.cs (8)
550/// <see cref="ThemeMode.None"/> - No Fluent theme is loaded. However, if <see cref="Application.ThemeMode"/> is not None, 551/// then the window will appear as defined in <see cref="Application.ThemeMode"/>. 3666if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 4520if (Application.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread) 5490if (Application.IsShuttingDown) 7186private System.Windows.Application App 7188get {return System.Windows.Application.Current;} 7198return (Application.Current != null);
PresentationFramework.Fluent.Tests (2)
ResourceTests\FluentResourceDictionaryTests.cs (2)
6using Application = System.Windows.Application; 72if(Application.LoadComponent(uri) is not ResourceDictionary resourceDictionary)
PresentationFramework.Tests (1)
System\Windows\ResourceDictionaryTests.cs (1)
18_dictionary = (ResourceDictionary)Application.LoadComponent(new Uri(SampleDictionaryPath, UriKind.Relative));
PresentationUI (5)
artifacts\obj\PresentationUI\x86\Debug\net10.0\InstallationError.g.cs (1)
118System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS\Internal\Documents\FindToolBar.g.cs (1)
174System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationError.g.cs (1)
126System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationProgress.g.cs (1)
118System.Windows.Application.LoadComponent(this, resourceLocater);
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
186System.Windows.Application.Current.MainWindow);
Roslyn.VisualStudio.DiagnosticsWindow (4)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (1)
89System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (1)
81System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\PerfMargin\StatusIndicator.g.cs (1)
65System.Windows.Application.LoadComponent(this, resourceLocater);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\VenusMargin\ProjectionBufferMargin.g.cs (1)
58System.Windows.Application.LoadComponent(this, resourceLocater);