Table of Contents

Class UiApplication

Namespace
Wpf.Ui
Assembly
Wpf.Ui.dll

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

UiApplication

IsApplication

Gets a value indicating whether the application is running outside of the desktop app context.

public bool IsApplication { get; }

Property Value

bool

MainWindow

Gets or sets the application's main window.

public Window? MainWindow { get; set; }

Property Value

Window

Resources

Gets or sets the application's resources.

public ResourceDictionary Resources { get; set; }

Property Value

ResourceDictionary

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

Returns

object