locked
Redirect after animation RRS feed

  • Question

  • Hey!

    How to automatically redirect to another page after storyboard animation finished?

    thx!

    Wednesday, May 25, 2011 4:35 AM

Answers

  • Storyboard has Completed event. You can subscribe to this event. From there, you can do

    HtmlPage.Window.Navigate(new Uri(url, UriKind.Absolute)); if you want to navigate to web page. or,
    this.NavigationService.Navigate(new Uri(url, UriKind.Relative)) if you want to navigate to Silverlight page.. 

    Hope it helps.
    Wednesday, May 25, 2011 4:45 AM
  • Hi

    you need to handle the storyboard's "Completed" event :


            this.youStoryboardCompleted += (sender, e)
            => 
            {
                 //redirect to another page
                 HtmlPage.Window.Navigate(new Uri("http://www.google.it", UriKind.Absolute));
    
                 
                 //If you are using a Frame      
    this.youFrame.Navigate(new Uri("/Home",UriKind.Relative)); }



    Wednesday, May 25, 2011 4:58 AM

All replies

  • Storyboard has Completed event. You can subscribe to this event. From there, you can do

    HtmlPage.Window.Navigate(new Uri(url, UriKind.Absolute)); if you want to navigate to web page. or,
    this.NavigationService.Navigate(new Uri(url, UriKind.Relative)) if you want to navigate to Silverlight page.. 

    Hope it helps.
    Wednesday, May 25, 2011 4:45 AM
  • Hi

    you need to handle the storyboard's "Completed" event :


            this.youStoryboardCompleted += (sender, e)
            => 
            {
                 //redirect to another page
                 HtmlPage.Window.Navigate(new Uri("http://www.google.it", UriKind.Absolute));
    
                 
                 //If you are using a Frame      
    this.youFrame.Navigate(new Uri("/Home",UriKind.Relative)); }



    Wednesday, May 25, 2011 4:58 AM

  • Wednesday, May 25, 2011 4:58 AM

  • Wednesday, May 25, 2011 4:58 AM