Table of Contents

Class WindowExtensions

Namespace
CarinaStudio.Controls
Assembly
CarinaStudio.AppBase.Avalonia.dll

Extensions for Avalonia.Controls.Window.

public static class WindowExtensions
Inheritance
WindowExtensions
Inherited Members

Methods

MoveToCenterOfOwner(Window)

Move the window to center of its owner.

public static void MoveToCenterOfOwner(this Window window)

Parameters

window Window

Avalonia.Controls.Window.

MoveToCenterOfScreen(Window)

Move the window to center of the screen.

public static void MoveToCenterOfScreen(this Window window)

Parameters

window Window

Avalonia.Controls.Window.

MoveToCenterOfScreen(Window, Screen)

Move the window to center of given screen.

public static void MoveToCenterOfScreen(this Window window, Screen screen)

Parameters

window Window

Avalonia.Controls.Window.

screen Screen

Screen.

ShowDialog<T>(Window)

Show window as dialog without parent window.

public static Task<T> ShowDialog<T>(this Window window)

Parameters

window Window

Avalonia.Controls.Window.

Returns

Task<T>

Task of showing dialog.

Type Parameters

T

Type of result of dialog.