最佳答案
我不确定这种方法是否有问题,因为它看起来很简单但没有人建议它。
但我不明白为什么不能只使用 IsClippedToBounds
设置为 true
的 Frame
。这为您提供了一个内置的角半径,然后您可以根据需要进行调整。
<Grid>
<Frame
Padding = "0"
CornerRadius ="20"
IsClippedToBounds="true">
<Editor [...whatever...]/>
</Frame>
</Grid>
我目前正在使用这个解决方案,它对我有用。
关于xamarin - 如何制作圆角入口控件 Xamarin.Forms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37584006/