In This Article

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 an instance of the 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

An TreeExpansionKind that specifies the kind of expansion.

public TreeExpansionKind Kind { get; }

Property Value

TreeExpansionKind

SourceItem

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

Inherited Members

Extension Methods