Skip to content

Toast notification callback arguments #4980

Discussion options

You must be logged in to vote

I added next code to worker_RunWorkerCompleted:
Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, (SendOrPostCallback)delegate { ToastNotificationArguments(); }, null);

        private void ToastNotificationArguments()
        {
            // Listen to notification activation
            ToastNotificationManagerCompat.OnActivated += toastArgs =>
            {
                // Obtain the arguments from the notification
                ToastArguments args = ToastArguments.Parse(toastArgs.Argument);

                // Obtain any user input (text boxes, menu selections) from the notification
                ValueSet userInput = toastArgs.UserInput;

               …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GitUser200607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant