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, Nullable<Point>, Boolean)

Initializes a new instance of the TreeListBoxItemMenuEventArgs 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 Nullable<Point>

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

isBackground Boolean

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

Properties

IsBackground

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

public bool IsBackground { get; }

Property Value

Boolean:

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

Menu

Gets or sets the ContextMenu that is about to be displayed.

public ContextMenu Menu { get; set; }

Property Value

ContextMenu:

The ContextMenu that is about to be displayed.

PointerLocation

Gets or sets 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

Nullable<Point>:

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

Inherited Members