IDirectManipulationViewport2 interface (directmanipulation.h)

Provides management of behaviors on a viewport. A behavior affects the functionality of a particular part of the Direct Manipulation workflow.

Inheritance

The IDirectManipulationViewport2 interface inherits from IDirectManipulationViewport. IDirectManipulationViewport2 also has these types of members:

Methods

The IDirectManipulationViewport2 interface has these methods.

 
IDirectManipulationViewport2::AddBehavior

Adds a behavior to the viewport and returns a cookie to the caller.
IDirectManipulationViewport2::RemoveAllBehaviors

Removes all behaviors added to the viewport.
IDirectManipulationViewport2::RemoveBehavior

Removes a behavior from the viewport that matches the given cookie.

Remarks

IDirectManipulationViewport2 can be used in place of IDirectManipulationViewport.

Behaviors are created using IDirectManipulationManager2 and an appropriate class ID.

A behavior can be attached or removed at any time and takes effect immediately (even during an active manipulation or inertia animation).

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header directmanipulation.h

See also

Direct Manipulation Interfaces

IDirectManipulationViewport