private void OnToastNotificationUserAction(ToastNotificationActivatedEventArgsCompat e) { ToastArguments args = ToastArguments.Parse(e.Argument); Application.Current.Dispatcher.Invoke(delegate { NotificationUserAction data = new() { Arguments = args.ToDictionary(p => p.Key, p => p.Value), UserInputs = e.UserInput.ToDictionary(p => p.Key, p => p.Value) }; _bootstrapper.OnToastNotificationUserAction(data); }); } }