Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDirectManipulationViewport2 interface

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

Members

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

Methods

The IDirectManipulationViewport2 interface has these methods.

MethodDescription
AddBehavior

Adds a behavior to the viewport and returns a cookie to the caller.

RemoveAllBehaviors

Removes all behaviors added to the viewport.

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

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport2 is defined as 923CCAAC-61E1-4385-B726-017AF189882A

See also

IDirectManipulationViewport
Direct Manipulation Interfaces

 

 

Community Additions

Show:
© 2015 Microsoft