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)
- C#
- VB
- F#
public static KeyGestureFormatInfo GetInstance(
IFormatProvider? formatProvider
)
Public Shared Function GetInstance (
formatProvider As IFormatProvider
) As KeyGestureFormatInfo
static member GetInstance :
formatProvider : IFormatProvider -> KeyGestureFormatInfo
Parameters
- IFormatProvider
- The IFormatProvider to get a KeyGestureFormatInfo for.
Return Value
KeyGestureFormatInfoSee Also
Reference
KeyGestureFormatInfo Class
Avalonia.Input.Platform Namespace