EnumPicker Class
Represents an Enum picker.
public class EnumPicker : PickerBase
- Inheritance:
- object Visual UIElement FrameworkElement Control PickerBase object
Constructors
EnumPicker()
Initializes an instance of the class.
public EnumPicker()
Properties
EnumSortComparer
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.
EnumType
The enumeration type.
IsNullAllowed
Indicates whether a null value entry is included in the list.
public bool IsNullAllowed { get; set; }
Property Value
- bool:
trueif a null value entry is included in the list; otherwisefalse. The default value isfalse.
IsOnPopup
Indicates whether the control is being used on a popup, which affects how value changes are handled.
public bool IsOnPopup { get; set; }
Property Value
- bool:
trueif the control is being used on a popup; otherwise,false.
NullValueText
The text to display for a null value item when IsNullAllowed is true.
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.
Value
The value of the control.
Events
ValueChanged
Occurs after the Value property value changes.
Fields
EnumSortComparerProperty
Defines the EnumSortComparer property.
public static readonly DependencyProperty EnumSortComparerProperty
EnumTypeProperty
Defines the EnumType property.
public static readonly DependencyProperty EnumTypeProperty
IsNullAllowedProperty
Defines the IsNullAllowed property.
public static readonly DependencyProperty IsNullAllowedProperty
IsOnPopupProperty
Defines the IsOnPopup property.
public static readonly DependencyProperty IsOnPopupProperty
NullValueTextProperty
Defines the NullValueText property.
public static readonly DependencyProperty NullValueTextProperty
UseDisplayAttributesProperty
Defines the UseDisplayAttributes property.
public static readonly DependencyProperty UseDisplayAttributesProperty
ValueProperty
Defines the Value property.
public static readonly DependencyProperty ValueProperty