Skip to content

Peculiar behaviour upon rapid animation changing #16

@Aurumaker72

Description

@Aurumaker72

When changing visibility before animation ends, weird flickering behaviour occurs. Possible fix would be not allowing animations to stack on current element. Here's a XAML example to concretize the issue:

                                 <Style.Triggers>
                                    <DataTrigger Binding="{...}">
                                        <DataTrigger.EnterActions>
                                            <BeginStoryboard x:Name="Temp_Animation" Storyboard="{StaticResource FadeOutAnimation}"/>
                                        </DataTrigger.EnterActions>
                                        <DataTrigger.ExitActions>
                                            <StopStoryboard BeginStoryboardName="Temp_Animation"/>
                                            <BeginStoryboard Storyboard="{StaticResource FadeInAnimation}"/>
                                        </DataTrigger.ExitActions>
                                    </DataTrigger>
                                </Style.Triggers>

And here is a video. Note the flickering

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions