<Ellipse HorizontalAlignment="Center" Height="238" Stroke="Black" StrokeThickness="3" VerticalAlignment="Top" Width="300">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1.3" CenterX="0.5" />
</TransformGroup>
</Ellipse.RenderTransform>
</Ellipse>
I’m trying to get an Ellipse to Stretch in the center of the screen, however it always stetches to the right – I’ve been playing around with CenterX thinking that this is setting the Center point? But it’s not having any effect.
Can anyone assist please?
You need to set the RenderTransformOrigin on the Ellipse to
0.5,0.5in order to keep it centered: