EnumPropertyEditor Class
Represents a PropertyEditor for editing a Enum value with a EnumEditBox.
public class EnumPropertyEditor : PartEditBoxPropertyEditorBase
- Inheritance:
- object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Constructors
EnumPropertyEditor()
Initializes an instance of the class.
public EnumPropertyEditor()
EnumPropertyEditor(Type)
Initializes an instance of the class.
protected EnumPropertyEditor(Type propertyType)
| Parameter | Type | Description |
|---|---|---|
| propertyType | Type | The type of the property. |
Properties
EnumSortComparer
The IComparer<T> used to sort the enumeration values.
public IComparer<Enum>? EnumSortComparer { get; set; }
Property Value
- IComparer<Enum>:
The IComparer<T> used to sort the enumeration values; otherwise
nullto indicate no sorting, which will use the order the enumeration values are defined.
IsArrowKeyPartNavigationEnabled
Indicates whether the left/right arrow keys can be used to move between and select editable parts.
public bool IsArrowKeyPartNavigationEnabled { get; set; }
Property Value
- bool:
trueif the left/right arrow keys can be used to move between and select editable parts; otherwisefalse. The default value isfalse.
IsEditable
Indicates whether the edit box's text area is editable.
public bool IsEditable { get; set; }
Property Value
- bool:
trueif the edit box's text area is editable; otherwisefalse. The default value isfalse.
Remarks
When false, the edit box behaves more like a ComboBox.
PredefinedValueTemplateKey
The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
SpinWrapping
The wrapping behavior used when spinning past a minimum or maximum value in the active part.
public SpinWrapping SpinWrapping { get; set; }
Property Value
- SpinWrapping:
The default value is SimpleWrap.
UseDisplayAttributes
Indicates whether enumeration values should be displayed using an associated DisplayAttribute, if any.
public bool UseDisplayAttributes { get; set; }
Property Value
- bool:
trueif enumeration values should be displayed using an associatedDisplayAttribute, if any; otherwisefalse. The default value isfalse.
Inherited Members
- PartEditBoxPropertyEditorBase.BorderThickness
- PartEditBoxPropertyEditorBase.CommitTriggers
- PartEditBoxPropertyEditorBase.HasPopup
- PartEditBoxPropertyEditorBase.IsNullAllowed
- PartEditBoxPropertyEditorBase.IsUndoEnabled
- PartEditBoxPropertyEditorBase.PlaceholderText
- PartEditBoxPropertyEditorBase.SpinnerVisibility
- PartEditBoxPropertyEditorBase.TextAlignment
- PropertyEditorBase.CreateValueTemplate()
- PropertyEditorBase.ValueTemplate
- PropertyEditor.GetIsReadOnly(IPropertyModel)
- PropertyEditor.NameTemplate
- PropertyEditor.NameTemplateKey
- PropertyEditor.NameTemplateSelector
- PropertyEditor.ObjectType
- PropertyEditor.PropertyName
- PropertyEditor.PropertyType
- PropertyEditor.ValueTemplateKey
- PropertyEditor.ValueTemplateKind
- PropertyEditor.ValueTemplateSelector
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()