Edit

Share via


AttachedShadowBase.OnSizeChanged Method

Definition

This method is called when the element size changes, and SupportsOnSizeChangedEvent = true.

protected internal virtual void OnSizeChanged (Microsoft.Toolkit.Uwp.UI.AttachedShadowElementContext context, Windows.Foundation.Size newSize, Windows.Foundation.Size previousSize);
abstract member OnSizeChanged : Microsoft.Toolkit.Uwp.UI.AttachedShadowElementContext * Windows.Foundation.Size * Windows.Foundation.Size -> unit
override this.OnSizeChanged : Microsoft.Toolkit.Uwp.UI.AttachedShadowElementContext * Windows.Foundation.Size * Windows.Foundation.Size -> unit
Protected Friend Overridable Sub OnSizeChanged (context As AttachedShadowElementContext, newSize As Size, previousSize As Size)

Parameters

context
AttachedShadowElementContext

The AttachedShadowElementContext for the Windows.UI.Xaml.FrameworkElement firing its SizeChanged event

newSize
Size

The new size of the Windows.UI.Xaml.FrameworkElement

previousSize
Size

The previous size of the Windows.UI.Xaml.FrameworkElement

Applies to