AttachedShadowBase.OnSizeChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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