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

Inherited Members