Example #1
0
 public void AddSelectedCell(TableViewSelectedCell selectedCell)
 {
     _selectedCells.Add(selectedCell);
 }
Example #2
0
        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonUp(e);

            var selectedCell = new TableViewSelectedCell
            {
                ColumnIndex = ColumnIndex,
                RowIndex = _parentTableView.IndexOfRow(ParentCellsPresenter)
            };
            _parentTableView.AddSelectedCell(selectedCell);

            _parentTableView.FinishSelectedCells();
        }
Example #3
0
        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);
            }
        }
Example #4
0
        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);
        }