コード例 #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));
            }
        }
コード例 #2
0
 public void SelectFeedItem(FeedItem feedItemToSelect)
 {
     if (SelectedFeedItems.Any())
     {
         SelectedFeedItems.Clear();
     }
     if (feedItemToSelect != null)
     {
         SelectedFeedItems.Add(feedItemToSelect);
     }
 }