question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transitioner animation incomplete

See original GitHub issue

Hi there. I am using the toolkit in one of my projects and lately came to a strange problem with transitioner control and hoped somebody could help me out figuring whats going on. So i have a transitioner with two slides. The current slide is changed by binding defined in its style like this

                    <Style TargetType="md:Transitioner">
                        <Setter Property="SelectedIndex"
                                Value="1" />
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding UserLoginViewModel.IsUserLoggedIn}"
                                         Value="True">
                                <Setter Property="SelectedIndex"
                                        Value="0" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding UserLoginViewModel.IsUserLoggedIn}"
                                         Value="Fase">
                                <Setter Property="SelectedIndex"
                                        Value="1" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </md:Transitioner.Style>

The animations works correctly in most cases but on some machines animation is triggered and not completed , so transition is stuck somewhere in between the change. The strange thing is that clicking on the UI causing the transition to start/continue. I dont have any other code to control the transition just the binding.

I am using the 2.4.1.1101 version of dll. Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jespershcommented, Apr 4, 2020

@Keboo it is also reproducible in the demo. To trigger it (let’s call them TransitionerSlide A and TransitionerSlide B:

  • Go forward - TransitionerSlide A begins sliding away and TransitionerSlide B begins to slide into view.
  • Quickly before the transitions complete. Go back - TransitionerSlide B begins to slide away and TransitionerSlide A begins to slide into view.
  • Now because TransitionerSlide A is still actually doing its sliding away transition, then on its completion then it

To do this in the demo, when you click the first transition, then quickly Tab then Enter. To fix the demo (first two slides) this seems to be required: https://github.com/jespersh/MaterialDesignInXamlToolkit/commit/f5af2c3a83fdb56c5413811aad093e52c11d0d64

It might be required to look through all the Completed handlers and disable them if it is suddenly the current slide.

1reaction
alex6djcommented, Apr 3, 2020

Ok, the test project is ready.

Client.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are Eula's normal attack animations unfinished?
She seems to be missing a transition animation between her first and second normal attacks. I couldn't figure out what was going on...
Read more >
Animation Transition rule does not automatically appear
The transition rule, between two animations, does not appear when I join up two states, only after I have right clicked.
Read more >
unity game engine - Animation is not being transitioned
Your animator is missing the "forward left"/"forward right" animations. You just added "idle" and "Movement".
Read more >
Animations and Transitions - Win32 apps
For example, it's acceptable if an animation or transition ... and displaying an incomplete list or progress feedback would feel much slower ...
Read more >
[QUESTION] How to Delay Children Animations with ...
It seems that staggerChildren does not work when transitioning from initial -> animate variants, but when you change the value of animate to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found