Exemple #1
0
        private void SecondaryTasksListView_Loaded(object sender, RoutedEventArgs e)
        {
            var listView = (ListView)sender;

            _ActiveTasks         = new ObservableCollection <IBackgroundTaskRegistration>(BackgroundTasks.GetAllTasks());
            listView.ItemsSource = _ActiveTasks;

            if (listView.Items.Count > 0)
            {
                EmptyViewSecondaryTasks.Visibility = Visibility.Collapsed;
            }
        }