Called when content inside a viewport is updated.
HRESULT OnContentUpdated( [in] IDirectManipulationViewport *viewport, [in] IDirectManipulationContent *content );
- viewport [in]
The viewport that is updated.
- content [in]
The content in the viewport that has changed.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This method is called once for each content change in the viewport. This can result in multiple OnContentUpdated calls. For instance, when the position of the content is changed, you can use IDirectManipualtionContent::GetContentTransform to retrieve the new value.
If you have actions that need to be executed once for a viewport update, implement OnViewportUpdated.
Minimum supported client
|Windows 8 [desktop apps only]|
Minimum supported server
|Windows Server 2012 [desktop apps only]|