DesktopApplicationExtensionsRunWithMainWindowTWindow Method
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static void RunWithMainWindow<TWindow>(
this Application app
)
where TWindow : new(), Window
<ExtensionAttribute>
Public Shared Sub RunWithMainWindow(Of TWindow As {New, Window}) (
app As Application
)
[<ExtensionAttribute>]
static member RunWithMainWindow :
app : Application -> unit when 'TWindow : new() and Window
- app Application
-
- TWindow
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).