TreeListBoxItemMenuEventArgs Class
Provides event arguments for TreeListBox item menu events.
public class TreeListBoxItemMenuEventArgs : TreeListBoxItemEventArgs
- Inheritance:
- System.Object System.EventArgs System.Windows.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 | System.Object | The TreeListBox data item. |
container | TreeListBoxItem | The TreeListBoxItem container that wraps the Item. |
pointerLocation | System.Nullable<System.Windows.Point> | The location of the pointer relative to the Container if the menu was opened by a pointer (e.g. mouse right-click). |
isBackground | System.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
- System.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 System.Windows.Controls.ContextMenu that is about to be displayed.
public ContextMenu Menu { get; set; }
Property Value
- System.Windows.Controls.ContextMenu:
The System.Windows.Controls.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
- System.Nullable<System.Windows.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
- TreeListBoxItemEventArgs.Container
- TreeListBoxItemEventArgs.Item
- CancelRoutedEventArgs.Cancel
- System.EventArgs.Empty
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()