Interface IProvideCustomContextMenuPositionalInformation
Defines an interface that provides precise screen coordinate information for positioning a context menu when it is invoked through keyboard interaction within a custom control. This enables consistent and accessible context menu behavior in scenarios where mouse input is not used.
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public interface IProvideCustomContextMenuPositionalInformation
Remarks
This interface is leveraged by the XPMenus framework—particularly when using PopupMenus in Syncfusion Essential Tools—to accurately calculate and render the appropriate context menu location for a control, ensuring correct placement, accessibility compliance, and a consistent user experience during keyboard-based interactions.
Methods
GetMenuPositionForKeyboardInvoke()
Returns a point in client coordinates of the control.
Declaration
Point GetMenuPositionForKeyboardInvoke()
Returns
| Type |
|---|
| System.Drawing.Point |
Remarks
This method will be called when the context menu is being invoked due to a key like Shift + F10. The control that implements this interface should then return a point in client coordinates of the control where the context menus should be shown.
If the control were a TreeView for example, it should then return a location beside the current selected node.