Share via


IXRVisualTransition::SetGeneratedDuration (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetGeneratedDuration(
    __in XRDuration* pGeneratedDuration
) = 0;

Parameters

  • pGeneratedDuration
    [in] Pointer to an XRDuration structure that defines how long a storyboard animation will play one time.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can determine how long a visual transition takes by calling IXRVisualTransition::GetGeneratedDuration.

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::GetGeneratedDuration