Пример #1
0
 /// <summary>
 /// Occurs when the SnapTargetUpdate event occurs
 /// in the ISnapTarget dependency property.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="e"></param>
 private void snapTargetUpdate(ISnapTarget source, SnapTargetUpdateEventArgs e)
 {
     if (e.IsMoveUpdate == MoveUpdate.MoveDelta)
     {
         this.MoveTo(new Point(this.Left, this.Top) + e.MoveDelta);
     }
     else
     {
         this.CoerceLater();
     }
 }
Пример #2
0
 private void snapTargetUpdate(ISnapTarget source, SnapTargetUpdateEventArgs e)
 {
     if (e.isMoveUpdate)
     {
         MoveTo(new Point(Left, Top) + e.moveDelta);
     }
     else
     {
         CoerceLater();
     }
 }
Пример #3
0
 public void NotifySnapTargetUpdate(SnapTargetUpdateEventArgs e)
 {
     throw new NotImplementedException();
 }