Skip to main content

Win32Properties Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Set of Win32 specific properties and events that allow deeper customization of the application per platform.

public class Win32Properties

Inheritance: object -> Win32Properties

Methods

NameDescription
AddWindowStylesCallbackAdds a callback to set the window's style.
AddWndProcHookCallbackAdds a custom callback for the window's WndProc
GetNonClientHitTestResultNo summary available.
RemoveWindowStylesCallbackRemoves a callback to set the window's style.
RemoveWndProcHookCallbackRemoves a custom callback for the window's WndProc
SetNonClientHitTestResultNo summary available.

AddWindowStylesCallback Method

Adds a callback to set the window's style.

public void AddWindowStylesCallback(Avalonia.Controls.TopLevel topLevel, Avalonia.Controls.Win32Properties.CustomWindowStylesCallback callback)

Parameters

topLevel Avalonia.Controls.TopLevel

The window implementation

callback Avalonia.Controls.Win32Properties.CustomWindowStylesCallback

The callback

AddWndProcHookCallback Method

Adds a custom callback for the window's WndProc

public void AddWndProcHookCallback(Avalonia.Controls.TopLevel topLevel, Avalonia.Controls.Win32Properties.CustomWndProcHookCallback callback)

Parameters

topLevel Avalonia.Controls.TopLevel

The window

callback Avalonia.Controls.Win32Properties.CustomWndProcHookCallback

The callback

GetNonClientHitTestResult Method

public Avalonia.Controls.Win32Properties.Win32HitTestValue GetNonClientHitTestResult(Avalonia.Visual obj)

Parameters

obj Avalonia.Visual

Returns

Avalonia.Controls.Win32Properties.Win32HitTestValue

RemoveWindowStylesCallback Method

Removes a callback to set the window's style.

public void RemoveWindowStylesCallback(Avalonia.Controls.TopLevel topLevel, Avalonia.Controls.Win32Properties.CustomWindowStylesCallback callback)

Parameters

topLevel Avalonia.Controls.TopLevel

The window implementation

callback Avalonia.Controls.Win32Properties.CustomWindowStylesCallback

The callback

RemoveWndProcHookCallback Method

Removes a custom callback for the window's WndProc

public void RemoveWndProcHookCallback(Avalonia.Controls.TopLevel topLevel, Avalonia.Controls.Win32Properties.CustomWndProcHookCallback callback)

Parameters

topLevel Avalonia.Controls.TopLevel

The window

callback Avalonia.Controls.Win32Properties.CustomWndProcHookCallback

The callback

SetNonClientHitTestResult Method

public void SetNonClientHitTestResult(Avalonia.Visual obj, Avalonia.Controls.Win32Properties.Win32HitTestValue value)

Parameters

obj Avalonia.Visual

value Avalonia.Controls.Win32Properties.Win32HitTestValue

Fields

NameDescription
NonClientHitTestResultPropertyNo summary available.

NonClientHitTestResultProperty Field

public Avalonia.AttachedProperty<Avalonia.Controls.Win32Properties.Win32HitTestValue> NonClientHitTestResultProperty