Esempio n. 1
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();
        }
Esempio n. 2
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);
            }
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
 public void AddSelectedCell(TableViewSelectedCell selectedCell)
 {
     _selectedCells.Add(selectedCell);
 }