Class UiApplication
Represents a UI application.
public class UiApplication
- Inheritance
-
UiApplication
- Inherited Members
Constructors
UiApplication(Application)
Initializes a new instance of the UiApplication class.
public UiApplication(Application application)
Parameters
application
Application
Properties
Current
Gets the current application.
public static UiApplication Current { get; }
Property Value
IsApplication
Gets a value indicating whether the application is running outside of the desktop app context.
public bool IsApplication { get; }
Property Value
MainWindow
Gets or sets the application's main window.
public Window? MainWindow { get; set; }
Property Value
Resources
Gets or sets the application's resources.
public ResourceDictionary Resources { get; set; }
Property Value
Methods
Shutdown()
Turns the application's into shutdown mode.
public void Shutdown()
TryFindResource(object)
Gets or sets the application's main window.
public object TryFindResource(object resourceKey)
Parameters
resourceKey
object