public void AddSelectedCell(TableViewSelectedCell selectedCell) { _selectedCells.Add(selectedCell); }
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e) { base.OnMouseLeftButtonUp(e); var selectedCell = new TableViewSelectedCell { ColumnIndex = ColumnIndex, RowIndex = _parentTableView.IndexOfRow(ParentCellsPresenter) }; _parentTableView.AddSelectedCell(selectedCell); _parentTableView.FinishSelectedCells(); }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); if (e.LeftButton == MouseButtonState.Pressed) { var selectedCell = new TableViewSelectedCell { ColumnIndex = ColumnIndex, RowIndex = _parentTableView.IndexOfRow(ParentCellsPresenter) }; _parentTableView.AddSelectedCell(selectedCell); } }
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); _column.FocusColumn(); Focus(); _parentTableView.StartSelectedCells(); var selectedCell = new TableViewSelectedCell { ColumnIndex = ColumnIndex, RowIndex = _parentTableView.IndexOfRow(ParentCellsPresenter) }; _parentTableView.AddSelectedCell(selectedCell); }