IXRVisualTransition::GetGeneratedDuration (Compact 2013)

3/28/2014

This method retrieves how long it takes to move from one state to another.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetGeneratedDuration(
    __out XRDuration* pGeneratedDuration
) = 0;

Parameters

  • pGeneratedDuration
    [out] Pointer to an XRDuration structure that defines how long an animation storyboard will play once during a state transition.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can specify how long a visual transition takes by calling GetGeneratedDuration. When you call IXRVisualTransition::SetGeneratedDuration, you specify how long it will take for the visual transition to occur.

You can define the To, From, and GeneratedDuration properties of a visual transition in Microsoft Silverlight 3 XAML, in the source XAML that is parsed by your application. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the VisualTransition.To Property and the VisualTransition Class on MSDN.

Note

The contents of a ControlTemplate defined in Microsoft Silverlight 3 XAML cannot be accessed from C++. Therefore, visual transitions and visual-state groups that were defined in a ControlTemplate in the source XAML for your application cannot be accessed in XAML for Windows Embedded object tree.

.NET Framework Equivalent

System.Windows.VisualTransition.GeneratedDuration

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRVisualTransition
IXRVisualTransition::SetGeneratedDuration