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 a new instance of the TreeListBoxItemEventArgs 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

Gets the TreeListBoxItem container that wraps the Item.

public TreeListBoxItem Container { get; }

Property Value

TreeListBoxItem:

The TreeListBoxItem container that wraps the Item.

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

Gets the TreeListBox data item.

public object Item { get; }

Property Value

object:

The TreeListBox data item.

Inherited Members