Created
April 18, 2014 13:26
-
-
Save staticfloat/11044232 to your computer and use it in GitHub Desktop.
Navigation overrides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class MainPage : PhoneApplicationPage | |
{ | |
// ... | |
// Navigation to this page just finished | |
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
// Put setup here | |
// Call this last | |
base.OnNavigatedTo(e); | |
} | |
// Navigation to another page is about to happen | |
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) | |
{ | |
// Put teardown here | |
// Call this last | |
base.OnNavigatingFrom(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment