Table of Contents

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

int

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 string

the text to set on the new context menu item

enabled bool

if to set the item as enabled or disabled

onClick EventHandler

the 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)

Parameters

parent RControl

the parent control to show in

location RPoint

the location to show at relative to the parent control