DesktopApplicationExtensions.

Run(Application, Window) Method

Summary

On desktop-style platforms runs the application's main loop until main window is closed

Syntax

public static void Run(this Application app, Window mainWindow)

Remarks

Consider using StartWithDesktopStyleLifetime instead, see https://github.com/AvaloniaUI/Avalonia/wiki/Application-lifetimes for details

Parameters

Name Type Description
app Application
mainWindow Window

Return Value

Type Description
void