EnumPicker Class
Represents an System.Enum picker.
public class EnumPicker : PickerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control PickerBase Object
Constructors
EnumPicker()
Initializes an instance of the EnumPicker
class.
public EnumPicker()
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.
EnumType
Gets or sets the enumeration type.
public Type EnumType { get; set; }
Property Value
- System.Type:
The enumeration type.
IsOnPopup
Gets or sets whether the control is being used on a popup, which affects how value changes are handled.
public bool IsOnPopup { get; set; }
Property Value
- System.Boolean:
true
if the control is being used on a popup; otherwise,false
.
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 associatedDisplayAttribute
, if any; otherwisefalse
. The default value isfalse
.
Value
Gets or sets the value of the control.
public object Value { get; set; }
Property Value
- System.Object:
The value of the control.
Events
ValueChanged
Occurs after the Value property value changes.
public event EventHandler ValueChanged
Event Type
- System.EventHandler
Fields
EnumSortComparerProperty
Identifies the EnumSortComparer dependency property. This field is read-only.
public static readonly DependencyProperty EnumSortComparerProperty
EnumTypeProperty
Identifies the EnumType dependency property. This field is read-only.
public static readonly DependencyProperty EnumTypeProperty
IsOnPopupProperty
Identifies the IsOnPopup dependency property. This field is read-only.
public static readonly DependencyProperty IsOnPopupProperty
UseDisplayAttributesProperty
Identifies the UseDisplayAttributes dependency property. This field is read-only.
public static readonly DependencyProperty UseDisplayAttributesProperty
ValueProperty
Identifies the Value dependency property. This field is read-only.
public static readonly DependencyProperty ValueProperty
Inherited Members
- PickerBase.OnCreateAutomationPeer()
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()