In This Article

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:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl 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

Boolean:

true if the enumeration is a flags enumeration; otherwise false.

IsGroupStart

Gets a value indicating whether the enumeration value starts a group.

public bool IsGroupStart { get; }

Property Value

Boolean:

true if the enumeration value starts a group; otherwise false.

IsPartiallySelected

Gets a value indicating whether the enumeration value represented by this item is partially selected.

public bool IsPartiallySelected { get; }

Property Value

Boolean:

true if the enumeration value represented by this item is partially selected; otherwise false.

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 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

Extension Methods