private void MoveResizer(AttachmentDialogItem item, Rect resizerBounds) { // Transform resizer so it is anchored around the selected image. if (resizer != null && item != null) { resizer.LimitBounds = GetScaledBounds(item.ResizeLimit); resizer.Bounds = GetScaledBounds(resizerBounds); resizer.InvalidateArrange(); } }