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:
trueif 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.
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
- TreeListBoxItemEventArgs.Container
- TreeListBoxItemEventArgs.Item
- CancelRoutedEventArgs.Cancel
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()