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 dem Manipulator zuzuordnende Element.

manipulator
IManipulator

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

Ausnahmen

element ist null.

- oder - manipulator ist null.

Die IsManipulationEnabled-Eigenschaft für Element ist false.

Hinweise

Wenn element bereits eine Manipulation vorhanden ist, die sie zugeordnet ist, manipulator wird der vorhandenen Manipulation hinzugefügt. Andernfalls wird eine neue Manipulation erstellt.

Gilt für: