LabelGenerator Class
A helper class for automatically generating control labels.
public class LabelGenerator : ILabelGenerator
- Inheritance:
- System.Object Object
- Implements:
- ILabelGenerator
Constructors
LabelGenerator()
public LabelGenerator()
Methods
FromCommand(ICommand)
Attempts to create a label from a command.
public virtual string FromCommand(ICommand command)
Parameter | Type | Description |
---|---|---|
command | System.Windows.Input.ICommand | The command used to generate the label. |
Returns
- System.String:
A string value for the label, or
null
if a value could not be determined.
FromKey(String)
Attempts to create a label from a key.
public virtual string FromKey(string key)
Parameter | Type | Description |
---|---|---|
key | System.String | The key used to generate the label. |
Returns
- System.String:
A string value for the label, 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()