UIElement.ActualSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the size that this UIElement computed during the arrange pass of the layout process.
public:
property float2 ActualSize { float2 get(); };
float2 ActualSize();
public Vector2 ActualSize { get; }
var vector2 = uIElement.actualSize;
Public ReadOnly Property ActualSize As Vector2
Property Value
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.