Implements a multiple-input, single-output compositor for two-dimensional (2-D) transformations in a shared coordinate space.
public ref class ManipulationProcessor2D
public class ManipulationProcessor2D
type ManipulationProcessor2D = class
Public Class ManipulationProcessor2D
A ManipulationProcessor2D object treats a collection of manipulators as a composite object. Your application is then freed from the necessity of tracking and managing individual manipulators.
A manipulation processor by itself does not cause an element to move. Your application begins a manipulation as necessary, and then receives information from a manipulation processor by listening to the Started, Delta and Completed events. The values received via these events enable you to change the location, size or orientation of an element as needed.
You inform a manipulation processor which types of manipulations are allowed (translate, scale, rotate) by setting the SupportedManipulations property. You can then provide non-conditional logic to the transformation of the element that is being manipulated. For instance, instead of checking if rotation is enabled before changing the orientation of an element, you can unconditionally apply the rotation factor received from the manipulation processor; if rotation is not enabled, the manipulation processor will report that no rotational change has occurred.
When an element that is being manipulated is released (all manipulators are removed), you can use inertia processing to simulate friction and cause the element to gradually slow its movements before coming to a stop. For more information see the InertiaProcessor2D class.
|MinimumScaleRotateRadius MinimumScaleRotateRadius MinimumScaleRotateRadius MinimumScaleRotateRadius||
Gets or sets the minimum radius, in coordinate units, necessary for a manipulator to participate in scaling and rotation.
|Pivot Pivot Pivot Pivot||
Gets or sets the pivot information for the manipulation processor.
|SupportedManipulations SupportedManipulations SupportedManipulations SupportedManipulations||
Gets or sets the current set of supported manipulations.
|Completed Completed Completed Completed||
Occurs when a manipulation has competed.
|Delta Delta Delta Delta||
Occurs when the manipulation origin has changed or when translation, scaling, or rotation have occurred.
|Started Started Started Started||
Occurs when a new manipulation has started.