次の方法で共有


IXRVisualTransition::SetStoryboard (Windows Embedded CE 6.0)

1/6/2010

This method sets the storyboard that begins to play when the transition occurs.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetStoryboard(
    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.

.NET Framework Equivalent

System.Windows.VisualTransition.Storyboard

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRVisualTransition
IXRVisualTransition::GetStoryboard