internal void OnColumnElementStyleChanged(DataGridBoundColumn column) { // Update Element Style in Displayed rows foreach (DataGridRow row in GetAllRows()) { FrameworkElement element = column.GetCellContent(row); if (element != null) { element.SetStyleWithType(column.ElementStyle); } } InvalidateRowHeightEstimate(); }
internal void OnColumnElementStyleChanged(DataGridBoundColumn column) { // Update Element Style in Displayed rows if (_rowsPresenter != null) { foreach (DataGridRow row in _rowsPresenter.Children) { FrameworkElement element = column.GetCellContent(row); // if (element != null && element.Style == null) { element.Style = column.ElementStyle; } } InvalidateRowHeightEstimate(); } }