private bool CanVote() { if (Voting || Loading) { return(false); } if (!Questions.Any()) { return(false); } return(Questions.All(q => q.HasAnswer)); }
/// <summary> /// This command is invoked when we tap on any child item of the group. /// If all checkbox under the one group is marked then that group header checkbox is marked or else it is unmarked /// </summary> private void ItemCheckChangedCommandExecute() { IsGroupHeaderChecked = _groupChildItemCollection.All(x => x.IsSelected); MessagingCenter.Send(this, "UpdateSelectedItemsCountMessage"); }