Method MaxWidthOnSizeChanged
MaxWidthOnSizeChanged()
Binds the SizeChanged events of all items in the ControlSet to automatically update the suggested width based on the current maximum width value.
public virtual ControlSet MaxWidthOnSizeChanged()
Returns
- ControlSet
The current instance of the ControlSet, enabling method chaining.
Remarks
This method ensures that the suggested width is updated whenever the control's size changes. If the MaxWidth property is less than or equal to zero, the suggested width is set to NaN, effectively removing any width constraint.