MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Fast switching between TransitionSlides causes content to disappear!

Open mhmd98 opened this issue 7 years ago • 3 comments

Hi, i found an issue in transitions when fast switching between 2 slides. the issue occurs when I switch to a different slide while the animation from the first slide isn't finished. that causes the content to disappear, clicking again on the button doesn't show the content but switching to a different slide and going back works. The issue is present in the demo if you switch fast between the slides in the transaction pages (as shown in the GIF).

ezgif com-video-to-gif

mhmd98 avatar Jun 24 '18 14:06 mhmd98

an easier way to reproduce the issue would be by changing the selectedindex immediately but putting it in the same method for example: private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { MainTransitioner.SelectedIndex = 1; MainTransitioner.SelectedIndex = 0; }

mhmd98 avatar Jun 25 '18 09:06 mhmd98

Dupe of issue #939 my friend. Granted nothing searched on that particular issue would have made it show up

jespersh avatar Jun 25 '18 09:06 jespersh

well i went back to the demo to investigate further... i find it really weird that clicking on the blank would cause content to disappear cause it won't fire any event so there is no reason why it would do that, i also noticed that for both me and the creator of Issue #939 first switch did nothing! so here is what i found out:

  1. fast switching between 2 slides causes the content to disappear as i described above.
  2. clicking on the blank doesn't cause the content to disappear (or anything else for that matter), the reason issue #939 exist is because clicking the blank that fast would mean fast transitioning between the slides which leads to the first point.
  3. The issues happens only after first try (I went back and tested that). So if i start the program and switch fast between 2 slides the content does not disappear but after that it does. so i restart the program and fast-switch the content won't disappear if i do it one more time it will disappear. I hope this will help locating the issue.

mhmd98 avatar Jun 26 '18 12:06 mhmd98