SpreadsheetGear.Windows.Controls Namespace > DropDownButton Class : ContextMenuClosing Event |
'Declaration
Public Event ContextMenuClosing As System.Windows.Controls.ContextMenuEventHandler
'Usage
Dim instance As DropDownButton Dim handler As System.Windows.Controls.ContextMenuEventHandler AddHandler instance.ContextMenuClosing, handler
public event System.Windows.Controls.ContextMenuEventHandler ContextMenuClosing
public event ContextMenuClosing: System.Windows.Controls.ContextMenuEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event System.Windows.Controls.ContextMenuEventHandler* ContextMenuClosing
public: event System.Windows.Controls.ContextMenuEventHandler^ ContextMenuClosing
The event handler receives an argument of type System.Windows.Controls.ContextMenuEventArgs containing data related to this event. The following ContextMenuEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CursorLeft | Gets the horizontal position of the mouse. |
CursorTop | Gets the vertical position of the mouse. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2