private void SetCursorToHandle(FrameworkElement handle) { var handleRect = Mapper.Map <Rect>(handle.GetRectRelativeToParent()); var parentRect = new Rect(0, 0, ActualWidth, ActualHeight); handle.Cursor = WindowsSizeCursorsThumbCursorConverter.GetCursor(handleRect, parentRect); }
public void NotifyNewPosition(IPoint newPoint) { var delta = newPoint.Subtract(StartingPoint); var newChildLocation = ChildStartingPoint.Add(delta); var originalRect = new Rect(newChildLocation.X, newChildLocation.Y, Child.Width, Child.Height); SnappingEngine.SetSourceRectForDrag(originalRect); }
private void SetCursorToHandle(FrameworkElement handle) { var handleRect = Mapper.Map<Rect>(handle.GetRectRelativeToParent()); var parentRect = new Rect(0, 0, ActualWidth, ActualHeight); handle.Cursor = WindowsSizeCursorsThumbCursorConverter.GetCursor(handleRect, parentRect); }