Method SetContextMenu
SetContextMenu(View?, ContextMenuStrip)
Sets the context menu for the specified view. If the view is a ControlView, its context menu is assigned directly. Otherwise, the ContextMenuStrip is converted to MenuFlyout and assigned to the view.
public static MenuFlyout? SetContextMenu(View? view, ContextMenuStrip menu)
Parameters
viewViewThe View to set the context menu for.
menuContextMenuStripThe ContextMenu to set as the context menu.
Returns
- MenuFlyout
A MenuFlyout representing the context menu.