Example #1
0
        private void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (HeaderRowPresenter != null)
            {
                ResetFixedClipRect();
                HeaderRowPresenter.HeaderInvalidateArrange();
            }

            if (RowsPresenter != null)
            {
                RowsPresenter.RowsInvalidateArrange();
            }
        }
Example #2
0
        private void ColumnsChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            foreach (TableViewColumn col in Columns)
            {
                col.ParentTableView = this;
            }

            if (HeaderRowPresenter != null)
            {
                ResetFixedClipRect();
                HeaderRowPresenter.HeaderInvalidateArrange();
            }

            if (RowsPresenter != null)
            {
                RowsPresenter.ColumnsChanged();
            }
        }