ContextMenu Class

Definition

Line 1210 of System.Windows/Menu.cm

Inheritance

Constructors & Destructor

public ContextMenu()
public ContextMenu(ContextMenuCreateParams& createParams)
public ContextMenu(const Font& font)

Member Functions

public void AddMenuItem(MenuItemBase* menuItem)
public void AddMenuItemAction(MenuItem* menuItem, ClickAction* action)
public void CalculateSize()
protected override Point GetBoxLocation() const
internal override nothrow MenuItem* GetLatestMouseDownMenuItem() const
internal override nothrow MenuItem* GetOpenedMenuItem() const
internal override nothrow MenuItem* GetSelectedMenuItem() const
public nothrow bool HasMenuItems()
internal override nothrow bool IsOpen() const
internal override nothrow MenuItem* LatestOpenedMenuItem() const
protected override void OnPaint(PaintEventArgs& args)
protected override void OnVisibleChanged()
internal override nothrow void SetLatestMouseDownMenuItem(MenuItem* menuItem)
internal override nothrow void SetLatestOpenedMenuItem(MenuItem* menuItem)
internal override nothrow void SetMenuInvalidated()
internal override nothrow void SetSelectedMenuItem(MenuItem* selectedMenuItem_)

Member Variables

private ClickActions clickActions
private MenuItem* latestMouseDownMenuItem
private MenuItem* latestOpenedMenuItem
private UniquePtr<MenuItem> rootItemPtr
private MenuItem* selectedMenuItem

Constructor& Destructor Details

ContextMenu Constructor

public ContextMenu()

Definition
Line 1217 of System.Windows/Menu.cm


ContextMenu Constructor

public ContextMenu(ContextMenuCreateParams& createParams)

Definition
Line 1220 of System.Windows/Menu.cm


ContextMenu Constructor

public ContextMenu(const Font& font)

Definition
Line 1212 of System.Windows/Menu.cm


Member Function Details

AddMenuItem Member Function

public void AddMenuItem(MenuItemBase* menuItem)

Definition
Line 1225 of System.Windows/Menu.cm


AddMenuItemAction Member Function

public void AddMenuItemAction(MenuItem* menuItem, ClickAction* action)

Definition
Line 1229 of System.Windows/Menu.cm


CalculateSize Member Function

public void CalculateSize()

Definition
Line 1235 of System.Windows/Menu.cm


GetBoxLocation Member Function

protected override Point GetBoxLocation()

Definition
Line 1248 of System.Windows/Menu.cm


GetLatestMouseDownMenuItem Member Function

internal override nothrow MenuItem* GetLatestMouseDownMenuItem()

Definition
Line 1290 of System.Windows/Menu.cm


GetOpenedMenuItem Member Function

internal override nothrow MenuItem* GetOpenedMenuItem()

Definition
Line 1298 of System.Windows/Menu.cm


GetSelectedMenuItem Member Function

internal override nothrow MenuItem* GetSelectedMenuItem()

Definition
Line 1274 of System.Windows/Menu.cm


HasMenuItems Member Function

public nothrow bool HasMenuItems()

Definition
Line 1244 of System.Windows/Menu.cm


IsOpen Member Function

internal override nothrow bool IsOpen()

Definition
Line 1270 of System.Windows/Menu.cm


LatestOpenedMenuItem Member Function

internal override nothrow MenuItem* LatestOpenedMenuItem()

Definition
Line 1282 of System.Windows/Menu.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 1252 of System.Windows/Menu.cm


OnVisibleChanged Member Function

protected override void OnVisibleChanged()

Definition
Line 1257 of System.Windows/Menu.cm


SetLatestMouseDownMenuItem Member Function

internal override nothrow void SetLatestMouseDownMenuItem(MenuItem* menuItem)

Definition
Line 1294 of System.Windows/Menu.cm


SetLatestOpenedMenuItem Member Function

internal override nothrow void SetLatestOpenedMenuItem(MenuItem* menuItem)

Definition
Line 1286 of System.Windows/Menu.cm


SetMenuInvalidated Member Function

internal override nothrow void SetMenuInvalidated()

Definition
Line 1266 of System.Windows/Menu.cm


SetSelectedMenuItem Member Function

internal override nothrow void SetSelectedMenuItem(MenuItem* selectedMenuItem_)

Definition
Line 1278 of System.Windows/Menu.cm