コード例 #1
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;
            }
        }