//internal void NotifySortingChanged() //{ // if (ParentTableView != null) // ParentTableView.NotifySortingChanged(this); //} internal void AdjustWidth(double width) { if (width < 0) { width = 0; } Width = width; // adjust the width of this control if (ParentTableView != null) { ParentTableView.NotifyColumnWidthChanged(this); // let the table view know that this has changed } if (ColumnWidthChanged.IsNotNull()) { ColumnWidthChanged(this, null); } else { if (ResizeColumn && ParentTableView != null) { if (ColumnsHeadIndex.HasValue) { ParentTableView.ColumnsHead[ColumnsHeadIndex.Value].Width = width; } } } }
internal void AdjustWidth(double width) { if (width < 0) { width = 0; } Width = width; // adjust the width of this control if (ParentTableView != null) { ParentTableView.NotifyColumnWidthChanged(this); // let the table view know that this has changed } }