Click or drag to resize
DigitalRuneContextMenuOpen Method
Opens this ContextMenu (adds it to the UIScreen).

Namespace: DigitalRune.Game.UI.Controls
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public void Open(
	UIControl owner,
	Vector2F position
)

Parameters

owner
Type: DigitalRune.Game.UI.ControlsUIControl
The control that opened this context menu.
position
Type: DigitalRune.Mathematics.AlgebraVector2F
The position of the mouse cursor - or where the context menu should be opened. (Offset will be applied to this position.)
Exceptions
ExceptionCondition
ArgumentNullExceptionowner is .
ArgumentExceptionowner is not loaded. The owner needs to be a visible control.
See Also