KeyTipTextGenerator Class
A helper class for automatically generating key tip text for controls.
public class KeyTipTextGenerator : IKeyTipTextGenerator
- Inheritance:
- System.Object Object
- Implements:
- IKeyTipTextGenerator
Constructors
KeyTipTextGenerator()
public KeyTipTextGenerator()
Methods
FromCommand(ICommand)
Attempts to create the key tip text from a command.
public virtual string FromCommand(ICommand command)
Parameter | Type | Description |
---|---|---|
command | System.Windows.Input.ICommand | The command to examine. |
Returns
- System.String:
A string value for the key tip text, or
null
if a value could not be determined.
FromKeyGesture(KeyGesture)
Attempts to create the key tip text from a key gesture.
public virtual string FromKeyGesture(KeyGesture keyGesture)
Parameter | Type | Description |
---|---|---|
keyGesture | System.Windows.Input.KeyGesture | The key gesture to examine. |
Returns
- System.String:
A string value for the key tip text, or
null
if a value could not be determined.
FromLabel(String)
Attempts to create the key tip text from a label.
public virtual string FromLabel(string label)
Parameter | Type | Description |
---|---|---|
label | System.String | The label to examine. |
Returns
- System.String:
A string value for the key tip text, or
null
if a value could not be determined.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()