I’m getting XAML-blind I’m afraid. I’m developing a MS Surface application and I have an ellipse inside a ScatterViewItem (a container an end user can resize). I would like to keep the ellipse a circle (width == height) and keep it as big as possible (the lowest value of width/height of the SVI should be taken for both width/height properties of the ellipse).
A XAML only solution (using property triggers or similar) is prefered.
Your help is much appreciated as always.
Would a simple
Viewboxdo the trick? E.g.The
Viewboxwill scale its contents to fill the area of theViewbox, and by default does the scaling proportionally. The specified horizontal and vertical alignments keep theEllipsecentered when it cannot be stretched to the full size (because of the proportional scaling).