Size​Changed​Event​Args Size​Changed​Event​Args Size​Changed​Event​Args Size​Changed​Event​Args Class

Definition

Provides data related to the FrameworkElement.SizeChanged event.

public : sealed class SizeChangedEventArgs : RoutedEventArgs, ISizeChangedEventArgspublic sealed class SizeChangedEventArgs : RoutedEventArgs, ISizeChangedEventArgsPublic NotInheritable Class SizeChangedEventArgs Inherits RoutedEventArgs Implements ISizeChangedEventArgs// This API is not available in Javascript.
Inheritance
SizeChangedEventArgsSizeChangedEventArgsSizeChangedEventArgsSizeChangedEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

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.

Properties

NewSize NewSize NewSize NewSize

Gets the new size of the object reporting the size change.

public : Size NewSize { get; }public Size NewSize { get; }Public ReadOnly Property NewSize As Size// This API is not available in Javascript.
Value
Size Size Size Size

The new size. The Size structure contains the new height and width.

PreviousSize PreviousSize PreviousSize PreviousSize

Gets the previous size of the object reporting the size change.

public : Size PreviousSize { get; }public Size PreviousSize { get; }Public ReadOnly Property PreviousSize As Size// This API is not available in Javascript.
Value
Size Size Size Size

The previous size.

See Also