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

Gets 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

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

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