Example #1
0
        // When page is navigated to set data context to selected item in list
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string projectId;
            if (NavigationContext.QueryString.TryGetValue("project", out projectId))
            {
                // Find the project
                Guid pId = Guid.Parse(projectId);
                project = Service.Instance.Projects.FirstOrDefault(p => p.Id == pId);
                if (project == null)
                {
                    NavigationService.GoBack();
                    return;
                }

                project.RefreshWorkItems();
            }
            else
                NavigationService.GoBack();
        }