Example #1
0
		private void OnDragServiceCorrection(object sender, DragCorrectionEventArgs e)
		{
			if (GridLineController != null)
			{
				var position = e.GetPosition(this);
				var elementBase = e.Data.GetData("DESIGNER_ITEM") as ElementBase;
				if (elementBase != null && IsMouseInside(position))
					e.Correction = GridLineController.Pull(position) * Zoom;
			}
		}
Example #2
0
		private void UpdateAdornerPosition(DragCorrectionEventArgs e)
		{
			if (_dragAdorner != null)
			{
				if (DragCorrection != null)
					DragCorrection(this, e);
				_dragAdorner.UpdatePosition(e.GetPosition(_dragScope) + e.Correction);
			}
		}