UpdatePosition() публичный Метод

public UpdatePosition ( double left, double top ) : void
left double
top double
Результат void
Пример #1
0
 private void UpdateDragAdorner(Point currentPosition)
 {
     if (_dragAdorner != null)
     {
         _dragAdorner.UpdatePosition(currentPosition.X, currentPosition.Y);
     }
 }
Пример #2
0
 private void InitializeDragAdorner(ItemsControl itemsControl, object dragData, Point startPosition)
 {
     if (this.DataTemplate != null)
     {
         if (_dragAdorner == null)
         {
             var adornerLayer = AdornerLayer.GetAdornerLayer(itemsControl);
             _dragAdorner = new DragAdorner(dragData, DataTemplate, itemsControl, adornerLayer);
             _dragAdorner.UpdatePosition(startPosition.X, startPosition.Y);
         }
     }
 }