Exemple #1
0
 protected virtual void SetDragDropBehavior()
 {
     this.DisposeDragHint();
     this.dragDropBehavior = this.GetDragDropBehavior();
     if (this.dragDropBehavior == null)
     {
         return;
     }
     this.PrepareDragHint(this.DropTarget);
 }
Exemple #2
0
        protected override void PerformStop()
        {
            SnapshotDragItem context = this.Context as SnapshotDragItem;

            if (context != null)
            {
                context.Capture          = false;
                context.Item.IsMouseDown = false;
            }
            base.PerformStop();
            this.DisposeDragHint();
            this.dragDropBehavior = (IGridDragDropBehavior)null;
            this.lastDropPosition = RadPosition.None;
        }
Exemple #3
0
        protected virtual IGridDragDropBehavior GetDragDropBehavior()
        {
            IGridDragDropBehavior dragDropBehavior = (IGridDragDropBehavior)null;
            ISupportDrop          dropTarget       = this.DropTarget;

            if (dropTarget is GridHeaderCellElement)
            {
                dragDropBehavior = (IGridDragDropBehavior) new GridColumnDragDropBehvavior();
            }
            else if (dropTarget is GridDataRowElement)
            {
                dragDropBehavior = (IGridDragDropBehavior) new GridRowDragDropBehavior();
            }
            else
            {
                GroupFieldElement groupFieldElement = dropTarget as GroupFieldElement;
            }
            dragDropBehavior?.Initialize(this.GridViewElement);
            return(dragDropBehavior);
        }