public void PrepareCell(AyTableViewCellsPresenter parent, int idx) { ParentCellsPresenter = parent; ParentTableView = parent.ParentTableView; var column = ParentTableView.Columns[idx]; //IsSelected = ParentCellsPresenter.IsSelected() && (ParentTableView.FocusedColumnIndex == column.ColumnIndex); if (_column != column) { _column = column; this.Width = column.Width; BindingOperations.ClearBinding(this, WidthProperty); BindingOperations.SetBinding(this, WidthProperty, column.WidthBinding); Focusable = ParentTableView.CellNavigation; BindingOperations.ClearBinding(this, ColumnFocusBrushProperty); BindingOperations.SetBinding(this, ColumnFocusBrushProperty, new Binding { Source = _column, Mode = BindingMode.TwoWay, Path = new PropertyPath("ColumnFocusBrush") }); } column.GenerateCellContent(this); }
public AyTableViewColumnEventArgs(AyTableViewColumn column) { Column = column; }