Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
        private void UpdateChildRecordTableBounds(double listviewheight)
        {
            double rowHeight      = 0.0;
            double totalRowHeight = 0.0;

            if (ChildRecords.Any())
            {
                rowHeight      = ChildRecords.FirstOrDefault().RowHeight;
                totalRowHeight = ChildRecords.Count() * rowHeight;
            }
            if (totalRowHeight > listviewheight)
            {
                IsTableBottomLineVisible = true;
            }
            else if (ChildRecords.Count > 0)
            {
                ChildRecords[ChildRecords.Count - 1].IsTableSepartorVisble = true;
                IsTableBottomLineVisible = false;
            }
        }