Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Stop a StoryBoard

$
0
0

Hi,

I have a story boards with some animations and a repeat behaviour which is set to forever.

I want to stop my storyboard at a point in my programm,but it doesn't work.

I created a function/object  and I call it whenever I need.

   private void StopFade()
        {
            Storyboard repeat = (Storyboard)Resources["repeat"];
            repeat.Stop(this);
        }

Issue #2 How can I make an image to transition across the screene,and I want to controll it from code behind.

Thank you!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>