SizeChangedEventArgs SizeChangedEventArgs SizeChangedEventArgs Class

Provides data related to the SizeChanged event.

Syntax

Declaration

public sealed class SizeChangedEventArgspublic sealed class SizeChangedEventArgsPublic NotInheritable Class SizeChangedEventArgs

Inheritance Hierarchy

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 SizeChanged use the WindowSizeChangedEventArgs class for data. SizeChanged can occur in some of the same circumstances that SizeChanged occurs; for more info, see SizeChanged.

Properties summary

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

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

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 Sizepublic Size NewSize { get; }

    Property Value

    • 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 Sizepublic Size PreviousSize { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.dll