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