Table of Contents

Class DefaultPlatformSettings

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

A default implementation of IPlatformSettings for platforms.

[PrivateApi]
public class DefaultPlatformSettings : IPlatformSettings
Inheritance
DefaultPlatformSettings
Implements
Inherited Members

Constructors

DefaultPlatformSettings()

public DefaultPlatformSettings()

Properties

HoldWaitDuration

Holding duration between pointer press and when event is fired.

public virtual TimeSpan HoldWaitDuration { get; }

Property Value

TimeSpan

HotkeyConfiguration

Get a configuration for platform-specific hotkeys in an Avalonia application.

public PlatformHotkeyConfiguration HotkeyConfiguration { get; }

Property Value

PlatformHotkeyConfiguration

Methods

GetColorValues()

Gets current system color values including dark mode and accent colors.

public virtual PlatformColorValues GetColorValues()

Returns

PlatformColorValues

GetDoubleTapSize(PointerType)

The size of the rectangle around the location of a pointer down that a pointer up must occur within in order to register a double-tap gesture, in device-independent pixels.

public virtual Size GetDoubleTapSize(PointerType type)

Parameters

type PointerType

The pointer type.

Returns

Size

GetDoubleTapTime(PointerType)

Gets the maximum time that may occur between the first and second click of a double- tap gesture.

public virtual TimeSpan GetDoubleTapTime(PointerType type)

Parameters

type PointerType

Returns

TimeSpan

GetTapSize(PointerType)

The size of the rectangle around the location of a pointer down that a pointer up must occur within in order to register a tap gesture, in device-independent pixels.

public virtual Size GetTapSize(PointerType type)

Parameters

type PointerType

The pointer type.

Returns

Size

OnColorValuesChanged(PlatformColorValues)

protected void OnColorValuesChanged(PlatformColorValues colorValues)

Parameters

colorValues PlatformColorValues

Events

ColorValuesChanged

Raises when current system color values are changed. Including changing of a dark mode and accent colors.

public virtual event EventHandler<PlatformColorValues>? ColorValuesChanged

Event Type

EventHandler<PlatformColorValues>