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();
 }
Exemple #2
0
 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();
     }
 }