I have an application with a storyboard, which turns a icon that indicates that the application is currently busy. Because I don’t have any chance to know, how long the application will be busy, the RepeatBehavior on the application is set to Forever and I have to stop it manually.
OK, seams to be easy, the storyboard has everything needed to stop it, a Pause-, Stop- and Remove-method, but somehow, nothing works. After some time I detected one line in the Output-Window of Visual Studio:
After some research the answer was very easy and very Microsoft-like, when you start the storyboard with the Begin-method, there is a second parameter of type Boolean, isControllable. This has to be set to true, afterwards all the methods mentioned above will work.
Happy Coding!
Keine Kommentare:
Kommentar veröffentlichen