TreeListBoxItemExpansionEventArgs Class
Provides event arguments for TreeListBox item expand and collapse-related events.
public class TreeListBoxItemExpansionEventArgs : TreeListBoxItemEventArgs
- Inheritance:
- System.Object System.EventArgs System.Windows.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 | System.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 | System.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
- System.Object:
The TreeListBox data item that triggered the expand/collapse, if not expanding/collapsing all items in the control.
Inherited Members
- TreeListBoxItemEventArgs.Container
- TreeListBoxItemEventArgs.Item
- CancelRoutedEventArgs.Cancel
- System.EventArgs.Empty
- 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()