It appears that you have selected a width of 960px. If animation is still running and you click button again, then second animation will be started at wrong position (it will use X value from first animation, which is not finished) - Click button quickly many times and you will see the problem. Within the WowSlider application (paid version), you have the option to set the height and width of the slider (either preset or custom). Īlso, I would not recommend using By property of the DoubleAnimation: To avoid duplicate triggers/styles I placed Image and ToggleButton in the same StackPanel. You need to store current state of slide animation when clicking on button and based on it run appropriate story board.įor example, you could use ToggleButton that has IsChecked property (or property in view-model). WITHOUT any code behind, so just through xaml Also, you can enhance the slider capability by using APIs or building extensions. It helps you to create various kinds of sliders by just changing options, such as multiple slides, thumbnails, nested sliders, vertical direction and more. So like I click it and it slides out and then I want it to slide back in when I click it again. Splide is a flexible, lightweight (27kB) and accessible slider written in TypeScript. So I just got into animations and I wanted to do a "Slide out" animation and I managed to do so just fine.īut now I want it to slide in with the click on the same button.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |