Manipulation.AddManipulator(UIElement, IManipulator) Methode

Definition

Ordnet ein IManipulator Objekt dem angegebenen Element zu.

public:
 static void AddManipulator(System::Windows::UIElement ^ element, System::Windows::Input::IManipulator ^ manipulator);
public static void AddManipulator(System.Windows.UIElement element, System.Windows.Input.IManipulator manipulator);
static member AddManipulator : System.Windows.UIElement * System.Windows.Input.IManipulator -> unit
Public Shared Sub AddManipulator (element As UIElement, manipulator As IManipulator)

Parameter

element
UIElement

Das Element, dem der Manipulator zugeordnet werden soll.

manipulator
IManipulator

Das Objekt, das die Position der Eingabe bereitstellt, die eine Manipulation erstellt oder hinzugefügt wird.

Ausnahmen

element ist null.

-oder-

manipulator ist null.

Die IsManipulationEnabled Eigenschaft für das Element lautet false.

Hinweise

Wenn element bereits eine Manipulation damit verknüpft ist, manipulator wird sie der vorhandenen Manipulation hinzugefügt. Andernfalls wird eine neue Manipulation erstellt.

Gilt für: