public class FrameworkApplication : System.Windows.Application, System.Windows.Markup.IQueryAmbient
Public Class FrameworkApplication Inherits System.Windows.Application Implements System.Windows.Markup.IQueryAmbient
public class FrameworkApplication : System.Windows.Application, System.Windows.Markup.IQueryAmbient
Public Class FrameworkApplication Inherits System.Windows.Application Implements System.Windows.Markup.IQueryAmbient
The FrameworkApplication object is the central object in the Framework API. Its main purpose is to pull together all of the extensions and add-ins into one application. The FrameworkApplication encapsulates application-specific functionality, including the following::
The FrameworkApplication class follows the singleton pattern to provide easy access to its functionality.
System.Windows.Window window = FrameworkApplication.Current.MainWindow;
// center it
Rect rect = System.Windows.SystemParameters.WorkArea;
FrameworkApplication.Current.MainWindow.Left = rect.Left + (rect.Width - FrameworkApplication.Current.MainWindow.ActualWidth) / 2;
FrameworkApplication.Current.MainWindow.Top = rect.Top + (rect.Height - FrameworkApplication.Current.MainWindow.ActualHeight) / 2;
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.Application
ArcGIS.Desktop.Framework.FrameworkApplication
ArcGIS.Desktop.Core.Licensing.LicensedApplication
Target Platforms: Windows 11, Windows 10