私はWindows 10
Build 10586
をターゲティングしています。このトースト構築するMicrosoft.Toolkit.Uwp.Notifications
ライブラリを使用してScheduledToastNotificationが表示されないDeliveryTimeが見つからない場合
:それは逃しているため
ToastContent content = new ToastContent()
{
Launch = "@remider",
Visual = new ToastVisual()
{
BindingGeneric = new ToastBindingGeneric()
{
Children =
{
new AdaptiveText()
{
Text = "This is Toast"
},
new AdaptiveText()
{
Text = "This is toast content"
}
},
AppLogoOverride = new ToastGenericAppLogo()
{
Source = "ms-appx:///Assets/Toast/Toast.png",
}
},
},
Scenario = ToastScenario.Reminder,
Actions = new ToastActionsCustom()
{
Buttons =
{
new ToastButton("Open App", "@remider:1"),
new ToastButton("Dismiss", "cancel"){ActivationType = ToastActivationType.Background}
}
}
};
var remiderTime = DateTimeOffset.Now.AddMinutes(15);
ToastNotifier toastNotifier = ToastNotificationManager.CreateToastNotifier();
toastNotifier.AddToSchedule(new ScheduledToastNotification(content.GetXml(), remiderTime));
はreminderTimeは、
10:00 AM
であると言うと私のシャットダウン
09:58 AM
で私のPCをして
10:15 AM
で再び私のPCの電源を入れるには、何のトーストが示されていない
Delivery Time
(
10:00 AM
)私はその時点で自分のPCをオフにしているからです。
私はトーストが欲しいと思っています納期が逃しても表示されます。 これを達成するには?