/// <summary> /// Show the user a list of announcements /// </summary> /// <param name="announcements"></param> public void ShowAnnouncements(List <UserControl> announcements) { closedAnnouncements = false; announcementItems = announcements; Announcements.Content = announcementItems[0]; PreviousAnnouncement.Visibility = Visibility.Collapsed; if (announcementItems.Count == 1) { NextAnnouncement.Visibility = Visibility.Collapsed; } else { NextAnnouncement.Visibility = Visibility.Visible; } AnnouncementsContainer.Visibility = Visibility.Visible; Announcements.Focus(FocusState.Programmatic); }