語言

ContextMenuService.GetContextMenu(DependencyObject) 方法

定義

取得指定物件屬性 ContextMenu 的值。

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.ContextMenu
Public Shared Function GetContextMenu (element As DependencyObject) As ContextMenu

參數

element
DependencyObject

對該物業的查詢 ContextMenu 提出異議。

傳回

房產價值 ContextMenu 。

屬性

適用於