In This Article

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 associated DisplayAttribute, if any; otherwise false. The default value is false.

Inherited Members