=> new Vector2(r.Width, r.Height);
_painter.Measure((float)availableSize.Width) is System.Drawing.RectangleF r ? new Size(r.Width, r.Height) : default;