ContextMenuService.SetPlacementTarget(DependencyObject, UIElement) 方法

定义

设置指定对象的 PlacementTarget 属性的值。

public:
 static void SetPlacementTarget(System::Windows::DependencyObject ^ element, System::Windows::UIElement ^ value);
public static void SetPlacementTarget (System.Windows.DependencyObject element, System.Windows.UIElement value);
static member SetPlacementTarget : System.Windows.DependencyObject * System.Windows.UIElement -> unit
Public Shared Sub SetPlacementTarget (element As DependencyObject, value As UIElement)

参数

element
DependencyObject

要对其设置值的对象。

value
UIElement

要设置的值。

适用于