Skip to content

WindowInterop.AsWindow method

Presents an Avalonia window through the framework free contract the services take.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public static IWindow? AsWindow(this Window? window)

Parameters

name type description
window Window? The window to present, or null.

Returns

type description
IWindow? The window as an IWindow, or null when window is null.

See Also