Table of Contents

Interface IWindowBaseImpl

Namespace
Avalonia.Platform
Assembly
Avalonia.Controls.dll
[Unstable]
public interface IWindowBaseImpl : ITopLevelImpl, IOptionalFeatureProvider, IDisposable
Inherited Members

Properties

Activated

Gets or sets a method called when the window is activated (receives focus).

Action? Activated { get; set; }

Property Value

Action

Deactivated

Gets or sets a method called when the window is deactivated (loses focus).

Action? Deactivated { get; set; }

Property Value

Action

FrameSize

Gets the total size of the toplevel, excluding shadows.

Size? FrameSize { get; }

Property Value

Size?

MaxAutoSizeHint

Gets a maximum client size hint for an auto-sizing window, in device-independent pixels.

Size MaxAutoSizeHint { get; }

Property Value

Size

Position

Gets the position of the window in device pixels.

PixelPoint Position { get; }

Property Value

PixelPoint

PositionChanged

Gets or sets a method called when the window's position changes.

Action<PixelPoint>? PositionChanged { get; set; }

Property Value

Action<PixelPoint>

Methods

Activate()

Activates the window.

void Activate()

Hide()

Hides the window.

void Hide()

SetTopmost(bool)

Sets whether this window appears on top of all other windows

void SetTopmost(bool value)

Parameters

value bool

Show(bool, bool)

Shows the window.

void Show(bool activate, bool isDialog)

Parameters

activate bool

Whether to activate the shown window.

isDialog bool

Whether the window is being shown as a dialog.