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 属性的值。

属性

适用于