UIElement.ActualSize Property

Definition

Gets the size that this UIElement computed during the arrange pass of the layout process.

C#
public Vector2 ActualSize { get; }

Property Value

Vector2

The size that this UIElement computed during the arrange pass of the layout process.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

The ActualSize property is equivalent to the ActualWidth and ActualHeight properties, but represented as a Vector2. ActualSize can be used as an input property to an ExpressionAnimation.

When the ActualSize changes, the FrameworkElement.SizeChanged event is raised. The value of SizeChangedEventArgs.NewSize will be the new value of the ActualSize.

Applies to

Product Versions
WinRT Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100