public override void BindCellContent(FrameworkElement cellContent, DataGridRow row) { C1CheckeredBorder border = (C1CheckeredBorder)cellContent; Binding binding = CopyBinding(Binding); binding.Converter = new ColorConverter(); binding.Source = row.DataItem; border.Style = CellContentStyle; border.SetBinding(System.Windows.Controls.Control.BackgroundProperty, binding); }
public override FrameworkElement CreateCellContent(DataGridRow row) { C1CheckeredBorder border = new C1CheckeredBorder(); border.BorderBrush = DataGrid.BorderBrush; border.BorderThickness = new Thickness(1); border.Margin = new Thickness(1); border.CornerRadius = new CornerRadius(2); border.SquareWidth = 7; return border; }
public override FrameworkElement CreateCellContent(DataGridRow row) { C1CheckeredBorder border = new C1CheckeredBorder(); border.BorderBrush = DataGrid.BorderBrush; border.BorderThickness = new Thickness(1); border.Margin = new Thickness(1); border.CornerRadius = new CornerRadius(2); border.SquareWidth = 7; return(border); }