In This Article

TreeListBoxItemEventArgs Class

Provides event arguments for TreeListBox item-related events.

public class TreeListBoxItemEventArgs : CancelRoutedEventArgs
Inheritance:
object EventArgs RoutedEventArgs CancelRoutedEventArgs object
Derived:
TreeListBoxItemExpansionEventArgs TreeListBoxItemMenuEventArgs

Constructors

TreeListBoxItemEventArgs(object, TreeListBoxItem?)

Initializes an instance of the class.

public TreeListBoxItemEventArgs(object item, TreeListBoxItem? container)
Parameter Type Description
item object

The TreeListBox data item.

container TreeListBoxItem

The TreeListBoxItem container that wraps the Item.

Properties

Container

The TreeListBoxItem container that wraps the Item.

public TreeListBoxItem? Container { get; }

Property Value

TreeListBoxItem

Remarks

This property may return null when the Item is not currently visible. In that case a container might not yet have been generated for the item, or a prior container may have been recycled, both due to UI virtualization.

Item

The TreeListBox data item.

public object Item { get; }

Property Value

object

Inherited Members

Extension Methods