Table of Contents

Class Win32Properties

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

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

public static class Win32Properties
Inheritance
Win32Properties
Inherited Members

Fields

NonClientHitTestResultProperty

public static readonly AttachedProperty<Win32Properties.Win32HitTestValue> NonClientHitTestResultProperty

Field Value

AttachedProperty<Win32Properties.Win32HitTestValue>

Methods

AddWindowStylesCallback(TopLevel, CustomWindowStylesCallback?)

Adds a callback to set the window's style.

public static void AddWindowStylesCallback(TopLevel topLevel, Win32Properties.CustomWindowStylesCallback? callback)

Parameters

topLevel TopLevel

The window implementation

callback Win32Properties.CustomWindowStylesCallback

The callback

AddWndProcHookCallback(TopLevel, CustomWndProcHookCallback?)

Adds a custom callback for the window's WndProc

public static void AddWndProcHookCallback(TopLevel topLevel, Win32Properties.CustomWndProcHookCallback? callback)

Parameters

topLevel TopLevel

The window

callback Win32Properties.CustomWndProcHookCallback

The callback

GetNonClientHitTestResult(Visual)

public static Win32Properties.Win32HitTestValue GetNonClientHitTestResult(Visual obj)

Parameters

obj Visual

Returns

Win32Properties.Win32HitTestValue

RemoveWindowStylesCallback(TopLevel, CustomWindowStylesCallback?)

Removes a callback to set the window's style.

public static void RemoveWindowStylesCallback(TopLevel topLevel, Win32Properties.CustomWindowStylesCallback? callback)

Parameters

topLevel TopLevel

The window implementation

callback Win32Properties.CustomWindowStylesCallback

The callback

RemoveWndProcHookCallback(TopLevel, CustomWndProcHookCallback?)

Removes a custom callback for the window's WndProc

public static void RemoveWndProcHookCallback(TopLevel topLevel, Win32Properties.CustomWndProcHookCallback? callback)

Parameters

topLevel TopLevel

The window

callback Win32Properties.CustomWndProcHookCallback

The callback

SetNonClientHitTestResult(Visual, Win32HitTestValue)

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

Parameters

obj Visual
value Win32Properties.Win32HitTestValue