private void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (HeaderRowPresenter != null) { ResetFixedClipRect(); HeaderRowPresenter.HeaderInvalidateArrange(); } if (RowsPresenter != null) { RowsPresenter.RowsInvalidateArrange(); } }
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(); } }