private void notificationClosed() { // hide ourselves if all notifications have been dismissed. if (sections.Select(c => c.DisplayedCount).Sum() > 0) { State = Visibility.Hidden; } }