UIElement.ActualSize UIElement.ActualSize UIElement.ActualSize UIElement.ActualSize Property

Definition

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

public : Vector2 ActualSize { get; }
Vector2 ActualSize();
public Vector2 ActualSize { get; }
Public ReadOnly Property ActualSize As Vector2

Property Value

Vector2 Vector2

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

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

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.