Beispiel #1
0
        public MergedHeadersPanel()
        {
            _fixedSubPanel = new MergedHeadersSubPanel(true);
            InternalChildren.Add(_fixedSubPanel);

            _scrollingSubPanel = new MergedHeadersSubPanel(false);
            _scrollingDecorator = new ScrollingMergedHeaderCellDecorator {Child = _scrollingSubPanel};
            InternalChildren.Add(_scrollingDecorator);
        }
Beispiel #2
0
        public MergedHeadersPanel()
        {
            _fixedSubPanel = new MergedHeadersSubPanel(true);
            InternalChildren.Add(_fixedSubPanel);

            _scrollingSubPanel  = new MergedHeadersSubPanel(false);
            _scrollingDecorator = new ScrollingMergedHeaderCellDecorator {
                Child = _scrollingSubPanel
            };
            InternalChildren.Add(_scrollingDecorator);
        }
Beispiel #3
0
        private void RemoveMergedHeaders(IEnumerable <MergedHeader> mergedHeaders)
        {
            int fixedCount = TableView.GetFixedColumnCount(_context);

            foreach (MergedHeader header in mergedHeaders)
            {
                MergedHeadersSubPanel subPanel = _context.Columns[header.ColumnNames[0]].VisiblePosition < fixedCount ? _fixedSubPanel : _scrollingSubPanel;
                MergedHeaderCell      cell     = subPanel.Children.Cast <MergedHeaderCell>().Single(c => c.MergedHeader == header);
                subPanel.Children.Remove(cell);
            }
        }
Beispiel #4
0
        private void AddMergedHeaders(IEnumerable <MergedHeader> mergedHeaders)
        {
            int fixedCount = TableView.GetFixedColumnCount(_context);

            foreach (MergedHeader header in mergedHeaders)
            {
                MergedHeadersSubPanel subPanel = _context.Columns[header.ColumnNames[0]].VisiblePosition < fixedCount ? _fixedSubPanel : _scrollingSubPanel;
                subPanel.Children.Add(new MergedHeaderCell {
                    MergedHeader = header, Content = header.Title
                });
            }
        }