DesktopApplicationExtensionsRun(Application, ICloseable) Method
On desktop-style platforms runs the application's main loop until closable is closed
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static void Run(
this Application app,
ICloseable closable
)
<ExtensionAttribute>
Public Shared Sub Run (
app As Application,
closable As ICloseable
)
[<ExtensionAttribute>]
static member Run :
app : Application *
closable : ICloseable -> unit
- app Application
-
- closable ICloseable
-
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).
Consider using StartWithDesktopStyleLifetime instead, see https://github.com/AvaloniaUI/Avalonia/wiki/Application-lifetimes for details