90 references to Current
PresentationFramework (86)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
112
if (Application.
Current
!= null)
114
hwndOwner = Application.
Current
.ParkingHwnd;
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (31)
158
Application.
Current
.Dispatcher.Invoke(
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(
350
Application.
Current
.Dispatcher.BeginInvoke(
391
if (Application.
Current
!= null && RootBrowserWindow != null)
393
Application.
Current
.Dispatcher.BeginInvoke(
434
Application app = Application.
Current
;
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;
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);
893
if (Application.
Current
!= null)
895
IBrowserCallbackServices bcs = Application.
Current
.BrowserCallbackServices;
906
Application.
Current
.Dispatcher.BeginInvoke(
1032
if (Application.
Current
== null)
1037
return (OleCmdHelper) Application.
Current
.Dispatcher.Invoke(
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\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\OleCmdHelper.cs (10)
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\RootBrowserWindow.cs (1)
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 (2)
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 (2)
277
return BrowserInteropHelper.IsBrowserHosted && !(Application.
Current
is XappLauncherApp);
2123
Application app = Application.
Current
;
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 (1)
11907
Application app = Application.
Current
;
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 (1)
82
Application app = Application.
Current
;
src\Framework\System\Windows\FrameworkElement.cs (2)
137
Application app = Application.
Current
;
1076
Application app = Application.
Current
;
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (2)
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\Navigation\NavigationService.cs (4)
615
if (Application.
Current
== null)
624
INavigatorBase navigator = FindTargetInWindowCollection(Application.
Current
.WindowsInternal.Clone(), targetName);
630
navigator = FindTargetInWindowCollection(Application.
Current
.NonAppWindowsInternal.Clone(), targetName);
3667
get { return Application.
Current
; }
src\Framework\System\Windows\Shell\JumpList.cs (1)
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\SystemResources.cs (2)
1966
lock (((ICollection)Application.
Current
.Resources).SyncRoot)
1975
lock (((ICollection)Application.
Current
.Resources).SyncRoot)
src\Framework\System\Windows\Window.cs (4)
3756
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
4694
if (Application.
Current
.Dispatcher.Thread == Dispatcher.CurrentDispatcher.Thread)
7568
get {return System.Windows.Application.
Current
;}
7578
return (Application.
Current
!= null);
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (4)
117
if (Application.
Current
== null)
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);