IXRVisualTransition::SetStoryboard (Compact 2013)
3/28/2014
This method sets the storyboard that begins to play when the transition occurs.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetStoryboard(
__in IXRStoryboard* pStoryboard
) = 0;
Parameters
- pStoryboard
[in] Pointer to an IXRStoryboard object that defines the storyboard animation that begins to play when the transition occurs.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
When an IXRVisualTransition object contains a storyboard, that storyboard runs whenever the IXRVisualTransition is applied during a state change.
For example, if you want the border of an IXRButton control to change colors when the user moves the mouse away from it, you can create an IXRVisualTransition that has a storyboard that animates the value you set in its inherited method IXRControl::SetBorderBrush.
You can define the Storyboard property 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 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.Storyboard
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |