Enterwell / Wpf.Notifications

WPF notifications UI controls (as seen in VS Code)
MIT License
398 stars 40 forks source link

NotificationMessageContainer not initializing with existing messages when new context is set #15

Open AleksandarDev opened 6 years ago

AleksandarDev commented 6 years ago

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?