// Populates the page with content passed during navigation. // Any saved state is also provided when recreating a page from a prior session. // The state will be null the first time a page is visited. private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e) { }
// Populates the page with content passed during navigation. // Any saved state is also provided when recreating a page from a prior session. // The state will be null the first time a page is visited. private async void NavigationHelperLoadState(object sender, LoadStateEventArgs e) { var sampleDataGroups = await SampleDataSource.GetGroupsAsync(); DefaultViewModel["Groups"] = sampleDataGroups; }
private async void NavigationHelperLoadState(object sender, LoadStateEventArgs e) { // TODO: Create an appropriate data model for your problem domain to replace the sample data var sampleDataGroup = await SampleDataSource.GetGroupAsync("Group-4"); DefaultViewModel["Section3Items"] = sampleDataGroup; }
// Populates the page with content passed during navigation. // Any saved state is also provided when recreating a page from a prior session. // The state will be null the first time a page is visited. private async void NavigationHelperLoadState(object sender, LoadStateEventArgs e) { var group = await SampleDataSource.GetGroupAsync((string)e.NavigationParameter); DefaultViewModel["Group"] = group; }
// Populates the page with content passed during navigation. // Any saved state is also provided when recreating a page from a prior session. // The state will be null the first time a page is visited. private async void NavigationHelperLoadState(object sender, LoadStateEventArgs e) { var item = await SampleDataSource.GetItemAsync((string)e.NavigationParameter); DefaultViewModel["Item"] = item; }