Modifica

Condividi tramite


ContextMenuService.SetPlacementTarget(DependencyObject, UIElement) Method

Definition

Sets the value of the PlacementTarget property of the specified object.

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)

Parameters

element
DependencyObject

Object to set value on.

value
UIElement

Value to set.

Applies to