Beispiel #1
0
 private void RemoveDraggedAdorner()
 {
     if (this.draggedAdorner != null)
     {
         this.draggedAdorner.Detach();
         this.draggedAdorner = null;
     }
 }
Beispiel #2
0
 private void ShowDraggedAdorner(Point currentPosition)
 {
     if (this.draggedAdorner == null)
     {
         if (this.sourceItemsControl == null)
         {
             return;
         }
         var adornerLayer = AdornerLayer.GetAdornerLayer(this.sourceItemsControl);
         if (adornerLayer == null || this.draggedData == null)
         {
             return;
         }
         this.draggedAdorner = new DraggedAdorner(this.draggedData as WorkItem, this.sourceItemContainer, adornerLayer);
     }
     this.draggedAdorner.SetPosition(currentPosition.X - this.initialMousePosition.X, currentPosition.Y - this.initialMousePosition.Y);
 }