リマインダーとアラームの一覧は、ScheduledActionServiceクラスのGetActionsメソッドで取得する事ができます。
protected override void OnNavigatedTo(NavigationEventArgs e) { // ScheduledActionServiceに登録されている // リマインダーやアラーム情報を一括で取得する var notifications = ScheduledActionService.GetActions<ScheduledNotification>(); listBox1.ItemsSource = notifications; }
コレクションを設定する側のListBoxでは、以下の様にXAML側でItemTemplateを定義して、スケジュールの名前を表示させます。
<ListBox Height="411" x:Name="listBox1"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox>
実行させるとリマインダーとアラームの2種類のスケジュールが表示されます。現在設定されているスケジューラの修正などをおこなう際に使えると思います。








