public void CheckBoxChanged() { if (ChildRecords.Where(p => p.IsImageVisible == false && p.IsCheckboxVisible == false).Count() > 0) { Console.Write(""); } else { var count = ChildRecords.Where(p => p.isChecked).Count(); _selectAll = count == ChildRecords.Count(); OnPropertyChanged(nameof(SelectAll)); } }