Summary
Defines a platform-specific window implementation.
- Namespace
- Avalonia
.Platform - Interfaces
-
- IWindowBaseImpl
- ITopLevelImpl
- IDisposable
graph BT
Type-.->Interface0["IWindowBaseImpl"]
click Interface0 "/api/Avalonia.Platform/IWindowBaseImpl"
Type-.->Interface1["ITopLevelImpl"]
click Interface1 "/api/Avalonia.Platform/ITopLevelImpl"
Type-.->Interface2["IDisposable"]
Type["IWindowImpl"]
class Type type-node
Syntax
public interface IWindowImpl : IWindowBaseImpl, ITopLevelImpl, IDisposable
Properties
Name | Value | Summary |
---|---|---|
Closing | Func |
Gets or sets a method called before the underlying implementation is destroyed.
Return true to prevent the underlying implementation from closing.
|
Extend |
Action |
Gets or Sets an action that is called whenever one of the extend client area properties changed.
|
ExtendedMargins | Thickness |
Gets a thickness that describes the amount each side of the non-client area extends into the client area.
It includes the titlebar.
|
GotInputWhenDisabled | Action |
Called when a disabled window received input. Can be used to activate child windows.
|
Is |
bool |
Gets a value to indicate if the platform was able to extend client area to non-client area.
|
Needs |
bool |
Gets a flag that indicates if Managed decorations i.e. caption buttons are required.
This property is used when
IsClientAreaExtendedToDecorations is set.
|
OffScreenMargin | Thickness |
Gets a thickness that describes the margin around the window that is offscreen.
This may happen when a window is maximized and
IsClientAreaExtendedToDecorations is set.
|
WindowState | WindowState |
Gets or sets the minimized/maximized state of the window.
|
WindowStateChanged | Action |
Gets or sets a method called when the minimized/maximized state of the window changes.
|
Methods
Name | Value | Summary |
---|---|---|
BeginMoveDrag |
void |
Starts moving a window with left button being held. Should be called from left mouse button press event handler.
|
BeginResizeDrag |
void |
Starts resizing a window. This function is used if an application has window resizing controls.
Should be called from left mouse button press event handler
|
CanResize |
void |
Enables or disables resizing of the window
|
Move |
void |
Sets the client size of the top level.
|
Resize |
void |
Sets the client size of the top level.
|
SetEnabled |
void |
Disables the window for example when a modal dialog is open.
|
Set |
void |
Sets hints that configure how the client area extends.
|
Set |
void |
Sets how big the non-client titlebar area should be.
|
Set |
void |
Sets if the ClientArea is extended into the non-client area.
|
SetIcon |
void |
Sets the icon of this window.
|
SetMinMaxSize |
void |
Minimum width of the window.
|
SetParent |
void |
Sets the parent of the window.
|
SetSystemDecorations |
void |
Enables or disables system window decorations (title bar, buttons, etc)
|
SetTitle |
void |
Sets the title of the window.
|
ShowTaskbarIcon |
void |
Enables or disables the taskbar icon
|