EnumListBoxItem Class
Represents a selectable item in a EnumListBox.
[TemplateVisualState(Name = "Checked", GroupName = "CheckStates")]
[TemplateVisualState(Name = "Unchecked", GroupName = "CheckStates")]
[TemplateVisualState(Name = "Indeterminate", GroupName = "CheckStates")]
[TemplateVisualState(Name = "GroupNormal", GroupName = "GroupStates")]
[TemplateVisualState(Name = "GroupStart", GroupName = "GroupStates")]
public class EnumListBoxItem : ListBoxItem, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ContentControl System.Windows.Controls.ListBoxItem Object
Constructors
EnumListBoxItem()
Initializes a new instance of the EnumListBoxItem class.
public EnumListBoxItem()
Properties
IsFlagsEnum
Gets a value indicating whether the enumeration is a flags enumeration.
public bool IsFlagsEnum { get; }
Property Value
- System.Boolean:
true
if the enumeration is a flags enumeration; otherwisefalse
.
IsGroupStart
Gets a value indicating whether the enumeration value starts a group.
public bool IsGroupStart { get; }
Property Value
- System.Boolean:
true
if the enumeration value starts a group; otherwisefalse
.
IsPartiallySelected
Gets a value indicating whether the enumeration value represented by this item is partially selected.
public bool IsPartiallySelected { get; }
Property Value
- System.Boolean:
true
if the enumeration value represented by this item is partially selected; otherwisefalse
.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnMouseLeftButtonDown(MouseButtonEventArgs)
Provides class handling for the MouseLeftButtonDown
event.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.Input.MouseButtonEventArgs | The event data. |
Fields
IsFlagsEnumProperty
Identifies the IsFlagsEnum dependency property. This field is read-only.
public static readonly DependencyProperty IsFlagsEnumProperty
IsGroupStartProperty
Identifies the IsGroupStart dependency property. This field is read-only.
public static readonly DependencyProperty IsGroupStartProperty
IsPartiallySelectedProperty
Identifies the IsPartiallySelected dependency property. This field is read-only.
public static readonly DependencyProperty IsPartiallySelectedProperty
Inherited Members
- 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()