In This Article

EnumPropertyEditor Class

Represents a PropertyEditor for editing a Enum value with a EnumEditBox.

public class EnumPropertyEditor : PartEditBoxPropertyEditorBase, INotifyPropertyChanged
Inheritance:
System.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 System.Type

The type of the property.

Properties

EnumSortComparer

Gets or sets the System.Collections.Generic.IComparer<T> used to sort the enumeration values.

public IComparer<Enum> EnumSortComparer { get; set; }

Property Value

System.Collections.Generic.IComparer<System.Enum>:

The System.Collections.Generic.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 System.Windows.DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

System.Object:

The resource key that references a pre-defined System.Windows.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

System.Boolean:

true if enumeration values should be displayed using an associated DisplayAttribute, if any; otherwise false. The default value is false.

Inherited Members