Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.51 KB

sizechangedeventargs.md

File metadata and controls

26 lines (16 loc) · 1.51 KB
-api-id -api-type
T:Microsoft.UI.Xaml.SizeChangedEventArgs
winrt class

Microsoft.UI.Xaml.SizeChangedEventArgs

-description

Provides data related to the FrameworkElement.SizeChanged event.

-remarks

The PreviousSize value is based on ActualHeight and ActualWidth values on the element before the layout change that motivated the SizeChanged event. The NewSize value is based on the ActualHeight and ActualWidth values after the layout change is processed.

There's another event named SizeChanged that's defined by the Window class. Event handlers for Window.SizeChanged use the WindowSizeChangedEventArgs class for data. Window.SizeChanged can occur in some of the same circumstances that FrameworkElement.SizeChanged occurs; for more info, see FrameworkElement.SizeChanged.

-examples

-see-also

FrameworkElement.SizeChanged, RoutedEventArgs, ActualHeight, ActualWidth