ComponentOne FinancialChart for WPF
C1.WPF Namespace / C1ContextMenuService Class / GetContextMenu Method
The control from which the context menu is retrieved.



In This Topic
    GetContextMenu Method
    In This Topic
    Gets the context menu for a control.
    Syntax
    'Declaration
     
    
    Public Shared Function GetContextMenu( _
       ByVal element As DependencyObject _
    ) As IC1ContextMenu
    'Usage
     
    
    Dim element As DependencyObject
    Dim value As IC1ContextMenu
     
    value = C1ContextMenuService.GetContextMenu(element)
    public static IC1ContextMenu GetContextMenu( 
       DependencyObject element
    )
    public:
    static IC1ContextMenu^ GetContextMenu( 
       DependencyObject^ element
    ) 

    Parameters

    element
    The control from which the context menu is retrieved.

    Return Value

    The control's context menu.
    See Also