Skip to main content

GetInstance Method

Gets the most appropriate KeyGestureFormatInfo for the IFormatProvider requested. This will be, in order: 1. The provided IFormatProvider as a KeyGestureFormatInfo 2. The currently registered platform specific KeyGestureFormatInfo, if present. 3. The Invariant otherwise.

Definition

Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static KeyGestureFormatInfo GetInstance(
IFormatProvider? formatProvider
)

Parameters

  IFormatProvider
The IFormatProvider to get a KeyGestureFormatInfo for.

Return Value

KeyGestureFormatInfo

See Also

Reference

KeyGestureFormatInfo Class
Avalonia.Input.Platform Namespace