private void MarkAllReadButton_Click(object sender, RoutedEventArgs e) { if (QuestionsView.Items.Count == 0) { // There are no question, there is nothing to do. return; } // Clear questions in the frontend and in the backend. QuestionsView.ItemsSource = null; QuestionsManager.RemoveQuestionsAndSave(null, null); FeedManager.ClearTileAndBadge(); RefreshButton_Click(null, null); }