Use XAML to set the Width parameter of a user object to "auto."
On the innerControl, set:
OpenUserObject(uo, 10, 10) uo.InnerControl.Width = System.Double.NaN