InputGestureDisplayStringProvider Class
Defines a default implementation of IInputGestureDisplayStringProvider that can provide the display string of a gesture associated with an object.
public class InputGestureDisplayStringProvider : IInputGestureDisplayStringProvider
- Inheritance:
- object object
- Implements:
- IInputGestureDisplayStringProvider
Constructors
InputGestureDisplayStringProvider()
Initializes an instance of the class.
public InputGestureDisplayStringProvider()
Methods
GetDisplayString(object?)
Gets the display string for a gesture associated with a source object.
public virtual string? GetDisplayString(object? source)
Parameter | Type | Description |
---|---|---|
source | object | The source object. |
Returns
- string:
The display string for the source when available; otherwise
null
.
GetKeyGestureDisplayString(KeyGesture?)
Gets the display string for an Avalonia.Input.KeyGesture.
protected virtual string? GetKeyGestureDisplayString(KeyGesture? gesture)
Parameter | Type | Description |
---|---|---|
gesture | KeyGesture | The Avalonia.Input.KeyGesture. |
Returns
- string:
The display string for the Avalonia.Input.KeyGesture.
Remarks
Override this method to provide a custom display string for a Avalonia.Input.KeyGesture.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()