private async void RegisterBGTask_Click(object sender, RoutedEventArgs e) { var existing = BackgroundHelper.FindRegistration <OOPBackgroundTask.BadgeTask>(); if (existing == null) { // await BackgroundHelper.Register<OOPBackgroundTask.BadgeTask>(new ToastNotificationActionTrigger()); await BackgroundHelper.Register <OOPBackgroundTask.BadgeTask>(new TimeTrigger(15, false)); } BGTaskList.Text = ""; foreach (var t in BackgroundTaskRegistration.AllTasks) { BGTaskList.Text += t.Value.ToString() + "\n"; } }