共用方式為


ContextMenuService.GetPlacementTarget(DependencyObject) 方法

定義

取得指定物件之 PlacementTarget 屬性的值。

public:
 static System::Windows::UIElement ^ GetPlacementTarget(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.UIElement GetPlacementTarget (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetPlacementTarget : System.Windows.DependencyObject -> System.Windows.UIElement
Public Shared Function GetPlacementTarget (element As DependencyObject) As UIElement

參數

element
DependencyObject

要查詢有關 PlacementTarget 屬性的物件。

傳回

UIElement

PlacementTarget 屬性的值。

屬性

適用於