DesktopApplicationExtensionsRunWithMainWindowTWindow Method

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static void RunWithMainWindow<TWindow>(
	this Application app
)
where TWindow : new(), Window

Parameters

app  Application
 

Type Parameters

TWindow

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Application. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also