ComponentOne Basic Library for WPF and Silverlight
GetContextMenu Method (C1ContextMenuService)


C1.Silverlight Namespace > C1ContextMenuService Class : GetContextMenu Method
The control from which the context menu is retrieved.
Gets the context menu for a control.
Syntax
'Declaration
 
Public Shared Function GetContextMenu( _
   ByVal element As System.Windows.DependencyObject _
) As IC1ContextMenu
'Usage
 
Dim element As System.Windows.DependencyObject
Dim value As IC1ContextMenu
 
value = C1ContextMenuService.GetContextMenu(element)
public static IC1ContextMenu GetContextMenu( 
   System.Windows.DependencyObject element
)

Parameters

element
The control from which the context menu is retrieved.

Return Value

The control's context menu.
See Also

Reference

C1ContextMenuService Class
C1ContextMenuService Members