Partilhar via


ContextMenuService.SetPlacementTarget(DependencyObject, UIElement) Método

Definição

Define o valor da propriedade PlacementTarget do objeto especificado.

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)

Parâmetros

element
DependencyObject

O objeto no qual o valor deve ser definido.

value
UIElement

Valor a ser definido.

Aplica-se a