Table of Contents

Class ApplicationExtensions

Namespace
Xui.Core.DI
Assembly
Xui.Core.DI.dll
public static class ApplicationExtensions
Inheritance
ApplicationExtensions
Inherited Members

Methods

CreateAndShowMainWindowOnce<TWindow>(Application)

Like CreateAndShowOnce<TWindow>(Application), but also calls Quit() after the window closes and its scope is disposed. Use this for the application's main window so that closing it terminates the process.

public static void CreateAndShowMainWindowOnce<TWindow>(this Application app) where TWindow : Window

Parameters

app Application

Type Parameters

TWindow

CreateAndShowOnce<TWindow>(Application)

Creates a DI scope, resolves TWindow from it, and shows it. The scope is added to the window's DisposeQueue so it is disposed automatically when the window closes (assuming DestroyOnClose is true).

public static void CreateAndShowOnce<TWindow>(this Application app) where TWindow : Window

Parameters

app Application

Type Parameters

TWindow