ContextMenuService.SetPlacementTarget(DependencyObject, UIElement) Metoda

Definice

Nastaví hodnotu PlacementTarget vlastnosti zadaného objektu.

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)

Parametry

element
DependencyObject

Objekt, na který se má nastavit hodnota.

value
UIElement

Hodnota, která se má nastavit.

Platí pro