Class RContextMenu
- Namespace
- TheArtOfDev.HtmlRenderer.Adapters
- Assembly
- StockSharp.Xaml.dll
Adapter for platform specific context menu - used to create and show context menu at specific location.
Not relevant for platforms that don't render HTML on UI element.
public abstract class RContextMenu : IDisposable
- Inheritance
-
RContextMenu
- Implements
- Inherited Members
- Extension Methods
Constructors
RContextMenu()
protected RContextMenu()
Properties
ItemsCount
The total number of items in the context menu
public abstract int ItemsCount { get; }
Property Value
Methods
AddDivider()
Add divider item to the context menu.
The divider is a non clickable place holder used to separate items.
public abstract void AddDivider()
AddItem(string, bool, EventHandler)
Add item to the context menu with the given text that will raise the given event when clicked.
public abstract void AddItem(string text, bool enabled, EventHandler onClick)
Parameters
text
stringthe text to set on the new context menu item
enabled
boolif to set the item as enabled or disabled
onClick
EventHandlerthe event to raise when the item is clicked
Dispose()
Dispose the context menu.
public abstract void Dispose()
RemoveLastDivider()
Remove the last item from the context menu iff it is a divider
public abstract void RemoveLastDivider()
Show(RControl, RPoint)
Show the context menu in the given parent control at the given location.
public abstract void Show(RControl parent, RPoint location)