1

Closed

ToastPopup not working in event in WPF

description

I'm using inside the eventhandler, but notificaiton is not displaying if any background process in progress. I used below sample.

Let me know if i'm using anything wrong.

Application.Current.Dispatcher.Invoke(DispatcherPriority.Background,
                                      new Action(delegate
        {

            new ToastPopUp(NotificationHeading, msg.Message, NotificationType.Information)
            {
                Background = new LinearGradientBrush(Color.FromArgb(255, 4, 253, 82), Color.FromArgb(255, 10, 13, 248), 90),
                BorderBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)),
                FontColor = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255))
            }.Show();

            return;
        }));

file attachments

Closed Jun 20, 2016 at 8:46 PM by accessguru

comments

accessguru wrote May 19, 2015 at 12:52 PM

Sorry it took so long to get back to you. For some reason, I had missed the notification on this issue. I copied your code into a sample project (see attached), and it worked as expected. If you have a small project that you can send that will reproduce the issue, I would be happy to look at it. Also, are you on the latest version? Thanks for the feedback!

Lawrence

wrote Jun 20, 2016 at 8:46 PM