cancel notification

This commit is contained in:
jianxin committed 2024-08-27 23:37:22 +08:00
1 parent c9895f1960
commit 7fb94411c6
2 files changed
+3 -3

No files matched your search

@@ -43,7 +43,7 @@ public class AppNotificationActivationHandler : ActivationHandler<LaunchActivate
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
{
App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation");
App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation");
});
await Task.CompletedTask;
+2 -2
View File
@@ -98,8 +98,8 @@ public partial class App : Application
protected async override void OnLaunched(LaunchActivatedEventArgs args)
{
base.OnLaunched(args);
App.GetService<IAppNotificationService>().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory));
// cancel notification
// App.GetService<IAppNotificationService>().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory));
await App.GetService<IActivationService>().ActivateAsync(args);
}