IXRVisualTransition::GetStoryboard (Compact 2013)
3/28/2014
This method retrieves the storyboard that begins to play when the transition occurs.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetStoryboard(
__out IXRStoryboard** ppStoryboard
) = 0;
Parameters
- ppStoryboard
[out] Pointer to an IXRStoryboard pointer that references 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 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 |