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
windowWindowAvalonia.Controls.Window.
MoveToCenterOfScreen(Window)
Move the window to center of the screen.
public static void MoveToCenterOfScreen(this Window window)
Parameters
windowWindowAvalonia.Controls.Window.
MoveToCenterOfScreen(Window, Screen)
Move the window to center of given screen.
public static void MoveToCenterOfScreen(this Window window, Screen screen)
Parameters
windowWindowAvalonia.Controls.Window.
screenScreenScreen.
ShowDialog<T>(Window)
Show window as dialog without parent window.
public static Task<T> ShowDialog<T>(this Window window)
Parameters
windowWindowAvalonia.Controls.Window.
Returns
- Task<T>
Task of showing dialog.
Type Parameters
TType of result of dialog.