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 EnumPropertyEditor class.
public EnumPropertyEditor()
EnumPropertyEditor(Type)
Initializes an instance of the EnumPropertyEditor class.
protected EnumPropertyEditor(Type propertyType)
Parameter | Type | Description |
---|---|---|
propertyType | Type | The type of the property. |
Properties
EnumSortComparer
Gets or sets 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
null
to indicate no sorting, which will use the order the enumeration values are defined.
PredefinedValueTemplateKey
Gets the resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
protected override object PredefinedValueTemplateKey { get; }
Property Value
- object:
The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
UseDisplayAttributes
Gets or sets a value indicating whether enumeration values should be displayed using an associated DisplayAttribute
, if any.
public bool UseDisplayAttributes { get; set; }
Property Value
- bool:
true
if enumeration values should be displayed using an associatedDisplayAttribute
, if any; otherwisefalse
. The default value isfalse
.
Inherited Members
- PartEditBoxPropertyEditorBase.BorderThickness
- PartEditBoxPropertyEditorBase.CommitTriggers
- PartEditBoxPropertyEditorBase.HasPopup
- PartEditBoxPropertyEditorBase.IsArrowKeyPartNavigationEnabled
- PartEditBoxPropertyEditorBase.IsEditable
- PartEditBoxPropertyEditorBase.IsNullAllowed
- PartEditBoxPropertyEditorBase.IsUndoEnabled
- PartEditBoxPropertyEditorBase.PlaceholderText
- PartEditBoxPropertyEditorBase.SpinnerVisibility
- PartEditBoxPropertyEditorBase.SpinWrapping
- 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(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()