double AdjustWidth(double dx, Dock dock) { if (dock == Dock.Right) dx = -dx; width += dx; SetTargetWidth(width); return dx; }