In This Article

TreeListBoxItemMenuEventArgs Class

Provides event arguments for TreeListBox item menu events.

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

Constructors

TreeListBoxItemMenuEventArgs(object, TreeListBoxItem?, Point?, bool)

Initializes an instance of the class.

public TreeListBoxItemMenuEventArgs(object item, TreeListBoxItem? container, Point? pointerLocation, bool isBackground)
Parameter Type Description
item object

The TreeListBox data item.

container TreeListBoxItem

The TreeListBoxItem container that wraps the Item.

pointerLocation Point?

The location of the pointer relative to the Container if the menu was opened by a pointer (e.g. mouse right-click).

isBackground bool

Whether the pointer location is past the end of the content, in owner control background whitespace area.

Properties

IsBackground

Indicates whether the pointer location is past the end of the content, in owner control background whitespace area.

public bool IsBackground { get; }

Property Value

bool:

true if the pointer location is past the end of the content, in owner control background whitespace area; otherwise, false.

Menu

The ContextMenu that is about to be displayed.

public ContextMenu? Menu { get; set; }

Property Value

ContextMenu

PointerLocation

The location of the pointer relative to the Container if the menu was opened by a pointer (e.g., mouse right-click).

public Point?? PointerLocation { get; set; }

Property Value

Point?

Inherited Members

Extension Methods