Exemple #1
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);
        }
Exemple #2
0
        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);
            }
        }
        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);
            }
        }