Following are some of the common Methods available in any xaml.cs file
//Constructor
public GroupedItemsPage()
{
this.InitializeComponent();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
}
protected override void LoadState(Object navigationParameter, Dictionary
{
base.OnNavigatedTo(navigationParameter, pageState);
}
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
{
base.OnNavigatingFrom(e);
}
public ItemDetailPage()
{
this.InitializeComponent();
}
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
base.OnNavigatedFrom(e);
}
protected override void SaveState(Dictionary
{
base.SaveState(pageState);
}
(eg - first page name is GroupedItemsPage and second page name is ItemDetailPage)
Onstart Up 1st it calls the Constructer With no Doubt,
the 2nd hit is OnNavigatedTo method
the 3rd hit is LoadState method
...... while calling any xaml page WinRT executes in these sequence ( Evert time same sequence ... ),
When we are clicking on a some other page Link or item
1st it calls OnNavigatingFrom method
2nd it calls Constructer of the second page i.e. ItemDetailsPage
3rd OnNavigatedFrom
4th SaveState
No comments:
Post a Comment