Wpf.Notifications icon indicating copy to clipboard operation
Wpf.Notifications copied to clipboard

NotificationMessageContainer not initializing with existing messages when new context is set

Open AleksandarDev opened this issue 6 years ago • 0 comments

Reported in #14

Yeah, it's a bug. Since you're doing CreateMessage call from VM constructor, the message container in the view isn't yet bound to the manager.

NotificationMessageContainer only listens for OnMessageQueued and that's not triggered when you give it a manager with message already in queue.

Here after attaching event handlers, ManagerOnOnMessageDismissed should be called for all existing messages and ManagerOnOnMessageQueued for each message from the new manager.

Could this be it? Can you test this by not calling CreateMessage from constructor but for example on view Loaded?

AleksandarDev avatar May 29 '18 09:05 AleksandarDev