Пример #1
0
        /// <summary>
        /// Raise OnDoubleTapped Method in Selection Controller
        /// </summary>
        /// <param name="e">DoubleTappedRoutedEventArgs</param>
        internal void OnDoubleTapped(DoubleTappedEventArgs e)
        {
            if (this.TreeGridColumn != null && this.TreeGridColumn.TreeGrid != null && this.TreeGridColumn.TreeGrid.CanCellDoubleTapped())
            {
                var cellDoubleTappedEventArgs = new TreeGridCellDoubleTappedEventArgs(this.ColumnElement)
                {
                    Column         = this.TreeGridColumn,
                    RowColumnIndex = new RowColumnIndex(this.RowIndex, this.ColumnIndex),
                    Record         = this.ColumnElement.DataContext,
                    Node           = this.DataRow.Node,
#if WPF
                    ChangedButton = e.ChangedButton
#else
                    PointerDeviceType = e.PointerDeviceType
#endif
                };
                this.TreeGridColumn.TreeGrid.RaiseCellDoubleTappedEvent(cellDoubleTappedEventArgs);
            }
            this.TreeGrid.SelectionController.HandlePointerOperations(new GridPointerEventArgs(PointerOperation.DoubleTapped, e), new RowColumnIndex(this.RowIndex, this.ColumnIndex));
        }
Пример #2
0
        /// <summary>
        /// Raise OnDoubleTapped Method in Selection Controller
        /// </summary>
        /// <param name="e">DoubleTappedRoutedEventArgs</param>
        internal void OnDoubleTapped(DoubleTappedEventArgs e)
        {
            if (this.GridColumn != null && this.GridColumn.DataGrid != null)
            {
                var cellDoubleTappedEventArgs = new GridCellDoubleTappedEventArgs(this.ColumnElement)
                {
                    Column         = this.GridColumn,
                    RowColumnIndex = new RowColumnIndex(this.RowIndex, this.ColumnIndex),
                    Record         = this.ColumnElement.DataContext,
#if WPF
                    ChangedButton = e.ChangedButton
#else
                    PointerDeviceType = e.PointerDeviceType
#endif
                };
                this.GridColumn.DataGrid.RaiseCellDoubleTappedEvent(cellDoubleTappedEventArgs);
            }

            //var columnindex = this.IsExpanderColumn ? this.SelectionController.CurrentCellManager.CurrentRowColumnIndex.ColumnIndex : this.ColumnIndex;
            this.SelectionController.HandlePointerOperations(new GridPointerEventArgs(PointerOperation.DoubleTapped, e), new RowColumnIndex(this.RowIndex, this.ColumnIndex));
        }