ContextMenuService.GetContextMenu(DependencyObject) Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the ContextMenu property of the specified object.
public:
 static System::Windows::Controls::ContextMenu ^ GetContextMenu(System::Windows::DependencyObject ^ element);[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Controls.ContextMenu GetContextMenu(System.Windows.DependencyObject element);[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetContextMenu : System.Windows.DependencyObject -> System.Windows.Controls.ContextMenuPublic Shared Function GetContextMenu (element As DependencyObject) As ContextMenuParameters
- element
- DependencyObject
Object to query concerning the ContextMenu property.
Returns
Value of the ContextMenu property.
- Attributes