Search code examples
c#windows-phone-7storyboardexpression-blend

How to make storyboard autoreplay itself over and over again in Windows Phone


I have created storyboard in blend it autostarts when I go into certain page, but I would like to autoreplay it after it ends. How to do it?


Solution

  • Its simple..

    Just hookup your storyboard completion event and in its completion event call play event again.

        // Like Here my storyboard is sbSquare
        private void sbSquare_Completed(object sender, EventArgs e)
        {
            this.sbSquare.Begin();
        }