public void PrepareRow(TableView parent, object dataItem) { ParentTableView = parent; Focusable = ParentTableView.CellNavigation == false; Item = dataItem; // set the selected state for this row TableViewCellsPresenter scp = ParentTableView.SelectedCellsPresenter; if (scp != null) { IsSelected = ParentTableView.IndexOfRow(scp) == ParentTableView.IndexOfRow(this); } }
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); ParentTableView.ClearSelection(); _column.FocusColumn(); Focus(); ParentTableView.IsDragging = true; ParentTableView.selectStartColumn = this.ColumnIndex; ParentTableView.selectStartRow = ParentTableView.IndexOfRow(ParentCellsPresenter); }
public void PrepareRow(TableView parent, object dataItem) { ParentTableView = parent; Focusable = ParentTableView.CellNavigation == false; Item = dataItem; // set the selected state for this row var scp = ParentTableView.SelectedCellsPresenter; if (scp != null) IsSelected = ParentTableView.IndexOfRow(scp) == ParentTableView.IndexOfRow(this); }