Please login to access all of the features of the Community Site.

GroupAnimation

Mobile1.0

Groups animations so they can be triggered at the same time. Add the animations to group as child elements. Unlike other animations, it doesn’t take the shared animation properties; each child animation sets its own.

Note

When several animations in a group target the same element, they play one after another, from top to bottom. Each one waits for the previous one to finish.

Example

Define the group in the Resources of a parent element, then start it with a trigger or behavior like any other animation. See Animations for the full setup.

<Rock:GroupAnimation x:Key="FadeOut">
    <Rock:FadeToAnimation Target="{x:Reference myLabel}"
        Duration="2000"
        Opacity="0" />
    <Rock:FadeToAnimation Target="{x:Reference myButton}"
        Duration="2000"
        Opacity="0" />
</Rock:GroupAnimation>