Exemple #1
0
        public NotificationService()
        {
            Notifications = new GroupNotificationCollection();

            _growlNotifications = new NotificationWindow();
            _growlNotifications.SetResourceReference(FrameworkElement.StyleProperty, "NotificationWindowStyle");
            _growlNotifications.ItemClick += (s, e) =>
            {
                if (e.NotificationInfo.NavigationParameter == null)
                {
                    return;
                }

                NavigationExecuter.Execute(e.NotificationInfo.NavigationParameter, DefaultNavigationCallback);
                Notifications.Remove(e.NotificationInfo);
            };
        }