Exemple #1
0
		// 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)
		{
		}
Exemple #2
0
		// 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;
		}
Exemple #3
0
		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;
		}
Exemple #4
0
		// 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;
		}
Exemple #5
0
		// 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;
        }