1 type derived from Application
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
27
internal class XappLauncherApp :
Application
4 instantiations of Application
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
241
Application app = new
Application
();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1745
bamlType.DefaultConstructor = delegate() { return new System.Windows.
Application
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1130
case KnownElements.Application: o = new System.Windows.
Application
(); break;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
120
Application app = new
Application
();
172 references to Application
PresentationFramework (160)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
112
if (
Application
.Current != null)
114
hwndOwner =
Application
.Current.ParkingHwnd;
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (41)
158
Application
.Current.Dispatcher.Invoke(
241
Application
app = new Application();
263
Application
.Current.MimeType = mimeType;
266
Application
.Current.Dispatcher.Invoke(
271
int exitCode =
Application
.Current.RunInternal(null);
286
Application
currentApp =
Application
.Current;
326
if (
Application
.Current != null && RootBrowserWindow != null)
328
Application
.Current.Dispatcher.BeginInvoke(
339
if (RootBrowserWindow == null ||
Application
.IsShuttingDown)
350
Application
.Current.Dispatcher.BeginInvoke(
391
if (
Application
.Current != null && RootBrowserWindow != null)
393
Application
.Current.Dispatcher.BeginInvoke(
409
if (_rbw.Value != null && !
Application
.IsShuttingDown)
434
Application
app =
Application
.Current;
441
Debug.Assert(
Application
.IsShuttingDown);
464
if (
Application
.Current != null && RootBrowserWindow != null)
466
Application
.Current.Dispatcher.BeginInvoke(
490
if (
Application
.Current == null)
495
return (bool)
Application
.Current.Dispatcher.Invoke(
499
NavigationWindow window =
Application
.Current.MainWindow as NavigationWindow;
544
if (
Application
.IsApplicationObjectShuttingDown == true)
679
if (
Application
.Current != null)
681
info = ( SaveHistoryReturnInfo)
Application
.Current.Dispatcher.Invoke(
709
if (
Application
.Current == null)
718
Application
.Current.Dispatcher.Invoke(
785
Debug.Assert(
Application
.Current != null, "BrowserJournalingError: Application object should already be created");
790
Application
.Current.Startup += new System.Windows.StartupEventHandler(this.OnStartup);
873
return (
Application
.Current == null ? false : true);
879
return
Application
.IsShuttingDown;
893
if (
Application
.Current != null)
895
IBrowserCallbackServices bcs =
Application
.Current.BrowserCallbackServices;
898
Debug.Assert(!
Application
.IsApplicationObjectShuttingDown);
906
Application
.Current.Dispatcher.BeginInvoke(
1032
if (
Application
.Current == null)
1037
return (OleCmdHelper)
Application
.Current.Dispatcher.Invoke(
1043
if (
Application
.IsApplicationObjectShuttingDown == true)
1128
Application
.Current.Startup -= new System.Windows.StartupEventHandler(this.OnStartup);
1177
if (
Application
.Current != null)
1179
Application
.Current.ServiceProvider = value;
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
68
return
Application
.LoadBamlStreamWithSyncInfo(stream, pc);
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (6)
133
IBrowserCallbackServices ibcs = (
Application
.Current != null ) ?
Application
.Current.BrowserCallbackServices : null ;
179
if (
Application
.Current != null &&
Application
.Current.CheckAccess())
181
IBrowserCallbackServices ibcs =
Application
.Current.BrowserCallbackServices;
286
if (
Application
.Current.MimeType != MimeType.Document)
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (2)
52
Invariant.Assert(
Application
.ResourceAssembly != null, "If the entry assembly is null no ContentFileParts should be created");
139
entryLocation = new Uri(
Application
.ResourceAssembly.CodeBase);
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
854
pageFunction =
Application
.LoadComponent(_markupUri, true) as PageFunctionBase;
src\Framework\MS\Internal\AppModel\JournalNavigationScope.cs (1)
522
get { return System.Windows.
Application
.IsShuttingDown; }
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (12)
78
if (
Application
.Current == null ||
Application
.IsShuttingDown == true)
103
bool enabled = (bool)
Application
.Current.Dispatcher.Invoke(
114
if (
Application
.Current.MainWindow == null)
116
IInputElement target = FocusManager.GetFocusedElement(
Application
.Current.MainWindow);
120
target = (IInputElement)
Application
.Current.MainWindow;
135
if (
Application
.Current == null ||
Application
.IsShuttingDown == true)
140
int hresult = (int)
Application
.Current.Dispatcher.Invoke(
171
if (
Application
.Current.MainWindow == null)
173
IInputElement target = FocusManager.GetFocusedElement(
Application
.Current.MainWindow);
177
target = (IInputElement)
Application
.Current.MainWindow;
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (2)
65
Assembly asmApplication =
Application
.ResourceAssembly;
365
if (assembly.Equals(
Application
.ResourceAssembly))
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
1158
private static
Application
App
1160
get { return
Application
.Current; }
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (3)
43
if (
Application
.Current != null )
45
Window curWindow =
Application
.Current.MainWindow;
47
Invariant.Assert(
Application
.Current.BrowserCallbackServices == null || ( curWindow is RootBrowserWindow ));
src\Framework\MS\Internal\Helper.cs (3)
105
Application
app =
Application
.Current;
111
object appResource =
Application
.Current.FindResourceInternal(keys[k]);
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (3)
89
if ((System.Windows.
Application
.Current != null) &&
90
(System.Windows.
Application
.Current.MainWindow != null))
93
new System.Windows.Interop.WindowInteropHelper(System.Windows.
Application
.Current.MainWindow);
src\Framework\System\Windows\Application.cs (5)
277
return BrowserInteropHelper.IsBrowserHosted && !(
Application
.Current is XappLauncherApp);
887
static public
Application
Current
2123
Application
app =
Application
.Current;
2777
static private
Application
_appInstance;
src\Framework\System\Windows\Controls\DocumentViewer.cs (3)
2276
if (
Application
.Current != null &&
Application
.Current.CheckAccess())
2278
wnd =
Application
.Current.MainWindow;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (6)
11907
Application
app =
Application
.Current;
12177
Application
app = sender as
Application
;
12189
Application
app = sender as
Application
;
src\Framework\System\Windows\Controls\WebBrowser.cs (3)
1357
if (
Application
.Current != null)
1359
_rbw.Value =
Application
.Current.MainWindow as RootBrowserWindow;
1540
IntPtr pWebOC =
Application
.Current.BrowserCallbackServices.CreateWebBrowserControlInBrowserProcess();
src\Framework\System\Windows\FrameworkContentElement.cs (2)
82
Application
app =
Application
.Current;
src\Framework\System\Windows\FrameworkElement.cs (4)
137
Application
app =
Application
.Current;
1076
Application
app =
Application
.Current;
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (3)
70
Application
.Current.BrowserCallbackServices.GetOleClientSite(out oleClientSite);
173
Application
app =
Application
.Current;
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
703
XappLauncherApp launcherApp =
Application
.Current as XappLauncherApp;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
104
case 12: t = () => typeof(
Application
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
6856
Type type = typeof(System.Windows.
Application
);
6858
this.GetXamlType(typeof(System.Windows.
Application
)), // DeclaringType
6865
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.
Application
)target).Resources = (System.Windows.ResourceDictionary)value; };
6866
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.
Application
)target).Resources; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1743
typeof(System.Windows.
Application
),
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
4478
if (element is
Application
)
4480
((
Application
)element).ApplicationMarkupBaseUri = GetBaseUri();
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5556
case KnownElements.Application: t = typeof(System.Windows.
Application
); break;
src\Framework\System\Windows\Markup\XamlReader.cs (7)
396
Application
app = rootObject as
Application
;
868
MS.Internal.WindowsBase.SecurityHelper.RunClassConstructor(typeof(System.Windows.
Application
));
883
Application
app = root as
Application
;
1051
Application
app = root as
Application
;
src\Framework\System\Windows\Navigation\NavigationService.cs (8)
218
if (
Application
.InBrowserHostedApp())
615
if (
Application
.Current == null)
624
INavigatorBase navigator = FindTargetInWindowCollection(
Application
.Current.WindowsInternal.Clone(), targetName);
630
navigator = FindTargetInWindowCollection(
Application
.Current.NonAppWindowsInternal.Clone(), targetName);
1799
Application.PerformNavigationStateChangeTasks(true, false,
Application
.NavigationStateChange.Stopped);
3665
internal
Application
Application
3667
get { return
Application
.Current; }
3883
(
Application
.IsShuttingDown == true))
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
1128
return System.Windows.
Application
.IsShuttingDown;
src\Framework\System\Windows\ResourceDictionary.cs (12)
1523
Application
app = owner as
Application
;
1592
Application
app = owner as
Application
;
1634
Application
app = owner as
Application
;
1714
Application
app = o as
Application
;
2004
Application
app = o as
Application
;
2048
Application
app = o as
Application
;
src\Framework\System\Windows\Shell\JumpList.cs (6)
261
public static void SetJumpList(
Application
application, JumpList value)
293
public static JumpList GetJumpList(
Application
application)
306
private static readonly Dictionary<
Application
, JumpList> s_applicationMap = new Dictionary<
Application
, JumpList>();
308
private
Application
_application;
546
if (_application ==
Application
.Current && _initializing == false)
src\Framework\System\Windows\Standard\Debug.cs (1)
367
if (System.Windows.
Application
.Current.Dispatcher.CheckAccess())
src\Framework\System\Windows\StartupEventArgs.cs (1)
69
( (
Application
.Current.MimeType != MimeType.Application )
src\Framework\System\Windows\StaticResourceExtension.cs (1)
229
XamlType appXType = schemaContext.GetXamlType(typeof(
Application
));
src\Framework\System\Windows\SystemResources.cs (2)
1966
lock (((ICollection)
Application
.Current.Resources).SyncRoot)
1975
lock (((ICollection)
Application
.Current.Resources).SyncRoot)
src\Framework\System\Windows\Window.cs (6)
3756
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4694
if (
Application
.Current.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
5738
if (
Application
.IsShuttingDown)
7566
private System.Windows.
Application
App
7568
get {return System.Windows.
Application
.Current;}
7578
return (
Application
.Current != null);
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\MessagingContentPropertyEditorResources.xaml.cs (1)
26
resources = (ResourceDictionary)
Application
.LoadComponent(resourceLocator);
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
96
sharedResources = (ResourceDictionary)
Application
.LoadComponent(resourceLocator);
System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (1)
26
resources = (ResourceDictionary)
Application
.LoadComponent(resourceLocator);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (5)
117
if (
Application
.Current == null)
120
Application
app = new Application();
123
Fx.Assert(
Application
.Current != null, "Application and resources must be there");
124
Application
.Current.Resources.MergedDictionaries.Add(WorkflowDesignerColors.FontAndColorResources);
125
Application
.Current.Resources.MergedDictionaries.Add(WorkflowDesignerIcons.IconResourceDictionary);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (2)
118
defaultColors = (ResourceDictionary)
Application
.LoadComponent(resourceLocator);
136
highContrastColors = (ResourceDictionary)
Application
.LoadComponent(resourceLocator);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (2)
129
ResourceDictionary windowsAppIcons = (ResourceDictionary)
Application
.LoadComponent(resourceUri);
167
ResourceDictionary defaultIcons = (ResourceDictionary)
Application
.LoadComponent(resourceUri);