Event ContentSizeChanged
Raised after the content size has changed, notifying handlers of the completed change.
public event EventHandler<ValueChangedEventArgs<Size?>>? ContentSizeChanged
Returns
- EventHandler<ValueChangedEventArgs<Size?>>
- Raised after the content size has changed, notifying handlers of the completed change.
Examples
view.ContentSizeChanged += (sender, args) =>
{
Console.WriteLine($"Content size changed from {args.OldValue} to {args.NewValue}.");
};
Remarks
Provides the old and new content size via OldValue and NewValue, which may be null.
This event follows the Cancellable Work Pattern (CWP). See the CWP Deep Dive for more information.