TreeListBoxItemExpansionEventArgs Class
Provides event arguments for TreeListBox item expand and collapse-related events.
public class TreeListBoxItemExpansionEventArgs : TreeListBoxItemEventArgs
- Inheritance:
- Object EventArgs RoutedEventArgs CancelRoutedEventArgs TreeListBoxItemEventArgs Object
Constructors
TreeListBoxItemExpansionEventArgs(Object, TreeListBoxItem, TreeExpansionKind, Object)
Initializes a new instance of the TreeListBoxItemExpansionEventArgs class.
public TreeListBoxItemExpansionEventArgs(object item, TreeListBoxItem container, TreeExpansionKind kind, object sourceItem)
Parameter | Type | Description |
---|---|---|
item | Object | The TreeListBox data item. |
container | TreeListBoxItem | The TreeListBoxItem container that wraps the Item. |
kind | TreeExpansionKind | A TreeExpansionKind that specifies the kind of expansion. |
sourceItem | Object | The TreeListBox data item that triggered the expand/collapse, if not expanding/collapsing all items in the control. |
Properties
Kind
Gets a TreeExpansionKind that specifies the kind of expansion.
public TreeExpansionKind Kind { get; }
Property Value
- TreeExpansionKind:
A TreeExpansionKind that specifies the kind of expansion.
SourceItem
Gets the TreeListBox data item that triggered the expand/collapse, if not expanding/collapsing all items in the control.
public object SourceItem { get; }
Property Value
- Object:
The TreeListBox data item that triggered the expand/collapse, if not expanding/collapsing all items in the control.