Reputation: 13608
In my MainPage.xaml
I have defined this storyboard. When the app first runs it works great, I can call the Begin()
function and everything is well. But if i go to anther .xaml
page and go back, it does not work when i call the Begin()
function.
Does anyone have an idea?
Upvotes: 2
Views: 48
Reputation: 16102
When you say "go back" are you using NavigationService.GoBack() or are you using NavigationService.Navigate("myFirstPage.xaml")? If you're using the Navigate() method then you're doing forward navigation to a new page. If you're using back navigation then you'll be going to the same instance of the page as before.
Also note that WP7/8 doesn't always cache the page in the back stack. When memory pressure arises (e.g. from D3D usage) pages in the back stack might get GCed. You can fine tune your app's back stack navigation caching with Page.NavigationCacheMode and Frame.CacheSize.
Upvotes: 3