Sets the context menu for a control.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static void SetContextMenu(
	DependencyObject element,
	C1ContextMenu value
)
Visual Basic
Public Shared Sub SetContextMenu ( _
	element As DependencyObject, _
	value As C1ContextMenu _
)

Parameters

element
Type: System.Windows..::..DependencyObject
The Control to which the context menu is attached.
value
Type: C1.Silverlight..::..C1ContextMenu
The context menu to set.

See Also