2 instantiations of Application
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1763
DefaultConstructor = delegate () { return new System.Windows.
Application
(); }
System\Windows\Markup\KnownTypes.cs (1)
1122
case KnownElements.Application: o = new System.Windows.
Application
(); break;
129 references to Application
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
111
ComponentsDispatcher = new WpfDispatcher(
Application
.Current.Dispatcher);
PresentationFramework (123)
Microsoft\Win32\CommonDialog.cs (2)
71
if (
Application
.Current != null)
73
hwndOwner =
Application
.Current.ParkingHwnd;
MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
61
return
Application
.LoadBamlStreamWithSyncInfo(stream, pc);
MS\Internal\AppModel\ContentFilePart.cs (2)
32
Invariant.Assert(
Application
.ResourceAssembly != null, "If the entry assembly is null no ContentFileParts should be created");
103
entryLocation =
Application
.ResourceAssembly.Location;
MS\Internal\AppModel\Journaling.cs (1)
782
pageFunction =
Application
.LoadComponent(_markupUri, true) as PageFunctionBase;
MS\Internal\AppModel\JournalNavigationScope.cs (1)
492
get { return System.Windows.
Application
.IsShuttingDown; }
MS\Internal\AppModel\ResourceContainer.cs (2)
47
Assembly asmApplication =
Application
.ResourceAssembly;
276
if (assembly.Equals(
Application
.ResourceAssembly))
MS\Internal\Helper.cs (3)
85
Application
app =
Application
.Current;
91
object appResource =
Application
.Current.FindResourceInternal(keys[k]);
MS\Internal\Printing\Win32PrintDialog.cs (3)
59
if ((System.Windows.
Application
.Current != null) &&
60
(System.Windows.
Application
.Current.MainWindow != null))
63
new System.Windows.Interop.WindowInteropHelper(System.Windows.
Application
.Current.MainWindow);
System\Windows\Application.cs (2)
746
public static
Application
Current
2416
private static
Application
_appInstance;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
35
baseStyle =
Application
.Current.FindResource(typeof(CheckBox)) as Style;
67
baseStyle =
Application
.Current.FindResource(typeof(CheckBox)) as Style;
System\Windows\Controls\DocumentViewer.cs (3)
2156
if (
Application
.Current != null &&
Application
.Current.CheckAccess())
2158
wnd =
Application
.Current.MainWindow;
System\Windows\Controls\VirtualizingStackPanel.cs (6)
12033
Application
app =
Application
.Current;
12304
Application
app = sender as
Application
;
12313
Application
app = sender as
Application
;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
287
public static IEnumerable<
Application
> GetApplicationOwners(ResourceDictionary dictionary)
289
return GetOwners<
Application
>(dictionary.ApplicationOwners, EmptyApplicationList);
317
private static IReadOnlyCollection<
Application
> EmptyApplicationList
318
=> Array.Empty<
Application
>();
System\Windows\Documents\TextStore.cs (6)
4690
Application
app =
Application
.Current;
4878
Application
app = sender as
Application
;
4887
Application
app = sender as
Application
;
System\Windows\FrameworkContentElement.cs (2)
63
Application
app =
Application
.Current;
System\Windows\FrameworkElement.cs (4)
121
Application
app =
Application
.Current;
1055
Application
app =
Application
.Current;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
105
case 12: t = () => typeof(
Application
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
7423
Type type = typeof(System.Windows.
Application
);
7425
this.GetXamlType(typeof(System.Windows.
Application
)), // DeclaringType
7433
SetDelegate = delegate (object target, object value) { ((System.Windows.
Application
)target).Resources = (System.Windows.ResourceDictionary)value; },
7434
GetDelegate = delegate (object target) { return ((System.Windows.
Application
)target).Resources; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1760
typeof(System.Windows.
Application
),
System\Windows\Markup\BamlRecordReader.cs (2)
4407
if (element is
Application
)
4409
((
Application
)element).ApplicationMarkupBaseUri = GetBaseUri();
System\Windows\Markup\KnownTypes.cs (1)
5559
case KnownElements.Application: t = typeof(System.Windows.
Application
); break;
System\Windows\Markup\XamlReader.cs (7)
479
Application
app = rootObject as
Application
;
937
RuntimeHelpers.RunClassConstructor(typeof(
Application
).TypeHandle);
952
Application
app = root as
Application
;
1093
Application
app = root as
Application
;
System\Windows\Navigation\NavigationService.cs (7)
466
if (
Application
.Current == null)
475
INavigatorBase navigator = FindTargetInWindowCollection(
Application
.Current.WindowsInternal.Clone(), targetName);
481
navigator = FindTargetInWindowCollection(
Application
.Current.NonAppWindowsInternal.Clone(), targetName);
1584
Application.PerformNavigationStateChangeTasks(true, false,
Application
.NavigationStateChange.Stopped);
3329
internal
Application
Application
3331
get { return
Application
.Current; }
3519
(
Application
.IsShuttingDown))
System\Windows\Navigation\NavigationWindow.cs (1)
1080
return System.Windows.
Application
.IsShuttingDown;
System\Windows\ResourceDictionary.cs (12)
1537
Application
app = owner as
Application
;
1606
Application
app = owner as
Application
;
1648
Application
app = owner as
Application
;
1728
Application
app = o as
Application
;
2054
Application
app = o as
Application
;
2098
Application
app = o as
Application
;
System\Windows\Shell\JumpList.cs (6)
213
public static void SetJumpList(
Application
application, JumpList value)
239
public static JumpList GetJumpList(
Application
application)
252
private static readonly Dictionary<
Application
, JumpList> s_applicationMap = new Dictionary<
Application
, JumpList>();
254
private
Application
_application;
434
if (_application ==
Application
.Current && _initializing == false)
System\Windows\Standard\Debug.cs (1)
365
if (System.Windows.
Application
.Current.Dispatcher.CheckAccess())
System\Windows\StaticResourceExtension.cs (1)
215
XamlType appXType = schemaContext.GetXamlType(typeof(
Application
));
System\Windows\SystemResources.cs (2)
1857
lock (((ICollection)
Application
.Current.Resources).SyncRoot)
1866
lock (((ICollection)
Application
.Current.Resources).SyncRoot)
System\Windows\ThemeManager.cs (20)
23
bool useLightColors = GetUseLightColors(
Application
.Current.ThemeMode);
25
FluentThemeState newFluentThemeState = new FluentThemeState(
Application
.Current.ThemeMode.Value, useLightColors);
29
AddOrUpdateThemeResources(
Application
.Current.Resources, GetThemeDictionary(
Application
.Current.ThemeMode));
32
foreach (Window window in
Application
.Current.Windows)
88
AddOrUpdateThemeResources(
Application
.Current.Resources, GetThemeDictionary(newThemeMode));
90
foreach (Window window in
Application
.Current.Windows)
123
ThemeMode themeMode = GetThemeModeFromResourceDictionary(
Application
.Current.Resources);
125
if (
Application
.Current.ThemeMode != themeMode)
127
Application
.Current.ThemeMode = themeMode;
157
useLightColors = GetUseLightColors(
Application
.Current.ThemeMode);
203
return
Application
.Current != null && LastIndexOfFluentThemeDictionary(
Application
.Current.Resources) != -1;
213
if (
Application
.Current == null)
216
IEnumerable<int> indices = FindAllFluentThemeResourceDictionaryIndices(
Application
.Current.Resources);
220
Application
.Current.Resources.MergedDictionaries.RemoveAt(index);
223
foreach (Window window in
Application
.Current.Windows)
270
bool useLightColors = GetUseLightColors(
Application
.Current.ThemeMode);
322
if (
Application
.Current == null)
324
return
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"/>.
3657
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4508
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
5478
if (
Application
.IsShuttingDown)
7171
private System.Windows.
Application
App
7173
get {return System.Windows.
Application
.Current;}
7183
return (
Application
.Current != null);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
186
System.Windows.
Application
.Current.MainWindow);
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\InstallationError.g.cs (1)
118
System.Windows.
Application
.LoadComponent(this, resourceLocater);
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\MS\Internal\Documents\FindToolBar.g.cs (1)
174
System.Windows.
Application
.LoadComponent(this, resourceLocater);
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\TenFeetInstallationError.g.cs (1)
126
System.Windows.
Application
.LoadComponent(this, resourceLocater);
src\wpf\artifacts\obj\PresentationUI\x64\Release\net11.0\TenFeetInstallationProgress.g.cs (1)
118
System.Windows.
Application
.LoadComponent(this, resourceLocater);