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.

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
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6