protected override async void OnNavigatedTo(NavigationEventArgs e) { BackButton.IsEnabled = this.Frame.CanGoBack; if (e != null && e.Parameter != null) { isNewList = false; activeList = (TaskList)e.Parameter; } else { isNewList = true; var guid = Guid.NewGuid(); activeList = new TaskList(guid.ToString(), guid); } try { AppComboBox.ItemsSource = await Client.GetInstalledApps(); } catch (Exception) { // WDP might not be running, just dont put any apps in the list AppComboBox.ItemsSource = new List<string>(); } ParallelCheck.IsChecked = activeList.RunInParallel; BlockingCheck.IsChecked = activeList.AllowOtherTaskListsToRun; TerminateBgTasksCheck.IsChecked = activeList.TerminateBackgroundTasksOnCompletion; UpdateHeader(); TasksCollection = new ObservableCollection<TaskBase>(activeList.Tasks); TaskListView.ItemsSource = TasksCollection; BackgroundTasksCollection = new ObservableCollection<TaskBase>(activeList.BackgroundTasks); BgTaskListView.ItemsSource = BackgroundTasksCollection; if (BackgroundTasksCollection.Count > 0) { BgTasksHeader.Visibility = Visibility.Visible; } if (TasksCollection.Count > 0) { TasksHeader.Visibility = Visibility.Visible; } listEdited = false; var style = new Style(typeof(FlyoutPresenter)); style.Setters.Add(new Setter(FlyoutPresenter.MinWidthProperty, Window.Current.CoreWindow.Bounds.Width)); style.Setters.Add(new Setter(FlyoutPresenter.MinHeightProperty, Window.Current.CoreWindow.Bounds.Height)); EditFlyout.SetValue(Flyout.FlyoutPresenterStyleProperty, style); }