private void SetRestrictRect(Rect rect) { if (this.newDraggingService != null) this.newDraggingService.DragAllowedArea = rect.InflateRect(-rect.Width / 4, -rect.Height / 4); }