Edit

Share via


Manipulation.AddManipulator(UIElement, IManipulator) Method

Definition

Associates a IManipulator object with the specified element.

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)

Parameters

element
UIElement

The element to associate the manipulator with.

manipulator
IManipulator

The object that provides the position of the input that creates or is added to a manipulation.

Exceptions

element is null.

-or-

manipulator is null.

The IsManipulationEnabled property on element is false.

Remarks

If element already has a manipulation associated with it, manipulator is added to the existing manipulation. Otherwise, a new manipulation is created.

Applies to