Method OnContentSizeChanging
OnContentSizeChanging(ValueChangingEventArgs<Size?>)
Called before the content size changes, allowing subclasses to cancel or modify the change.
protected virtual bool OnContentSizeChanging(ValueChangingEventArgs<Size?> args)
Parameters
argsValueChangingEventArgs<Size?>The event arguments containing the current and proposed new content size.
Returns
- bool
True to cancel the change, false to proceed.