Exemple #1
0
        private void UpdateSelectAllFeedItems()
        {
            var newValue = !SelectedFeedItems.Any() ? false : (SelectedFeedItems.Count == SelectedFeed?.Items.Count ? true : (bool?)null);

            if (selectAllFeedItems != newValue)
            {
                selectAllFeedItems = newValue;
                RaisePropertyChanged(nameof(SelectAllFeedItems));
            }
        }
Exemple #2
0
 public void SelectFeedItem(FeedItem feedItemToSelect)
 {
     if (SelectedFeedItems.Any())
     {
         SelectedFeedItems.Clear();
     }
     if (feedItemToSelect != null)
     {
         SelectedFeedItems.Add(feedItemToSelect);
     }
 }
Exemple #3
0
 private void SelectedFeedItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     SelectedFeedItem = SelectedFeedItems.FirstOrDefault();
     UpdateSelectAllFeedItems();
 }