คำถาม timer, how to deal with, plz help

  • 13 มีนาคม 2555 5:34
     
     

    peace be upon you........

    i wanna navigate from the current page to another after 5 seconds of loading the current page in my windows phone app, "I'm tring to navigate between pages without forcing the user to do any thing ", i tried to use dispatchertimer but it doesn't worked as i want,this is my code, it navegates to the other page after 1 second even when i changed the interval to 15s

    DispatcherTimertimer = newDispatcherTimer();

    timer.Interval =newTimeSpan(0, 0, 5){

    //Whatever it is you need to do at the specified interval

    NavigationService.Navigate(newUri("/Page1.xaml", UriKind.RelativeOrAbsolute));

    }

    timer.Start();   

    can any body give a suggestion.................. 

    • ย้ายโดย Mike FengMicrosoft 14 มีนาคม 2555 9:08 Phone (From:Visual Studio Class Designer)
    •  

ตอบทั้งหมด