Manipulation.AddManipulator Method (UIElement, IManipulator)

.NET Framework (current version)
 

Associates a IManipulator object with the specified element.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static void AddManipulator(
	UIElement element,
	IManipulator manipulator
)

Parameters

element
Type: System.Windows.UIElement

The element to associate the manipulator with.

manipulator
Type: System.Windows.Input.IManipulator

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

Exception Condition
ArgumentNullException

element is null.

-or-

manipulator is null.

InvalidOperationException

The IsManipulationEnabled property on element is false.

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

.NET Framework
Available since 4.0
Return to top
Show: