Ejemplo n.º 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)
		{
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
        }