作者:除了祝福我能怎么办_218 | 来源:互联网 | 2023-09-06 13:12
ImgettingXAML-blindImafraid.ImdevelopingaMSSurfaceapplicationandIhaveanellipseins
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).
我害怕XAML失明。我正在开发一个MS Surface应用程序,我在ScatterViewItem(最终用户可以调整大小的容器)中有一个椭圆。我想保持椭圆为圆(宽度==高度)并保持尽可能大(对于椭圆的宽度/高度属性,应采用SVI宽度/高度的最小值)。
A XAML only solution (using property triggers or similar) is prefered.
优选仅使用XAML解决方案(使用属性触发器或类似方法)。
Your help is much appreciated as always.
一如既往地非常感谢您的帮助。
3 个解决方案