gpt4 book ai didi

xamarin - 如何制作圆角入口控件 Xamarin.Forms

转载 作者:行者123 更新时间:2023-12-05 08:15:00 26 4
gpt4 key购买 nike

我必须在 Xamarin.Forms 中使用圆角条目,但我还没有为此找到任何解决方案。

Xarin.Forms Entry Control in  Windows Phone

我正在尝试获得这种外观和感觉:

I want like this

请帮我解决这个问题。

最佳答案

我不确定这种方法是否有问题,因为它看起来很简单但没有人建议它。

但我不明白为什么不能只使用 IsClippedToBounds 设置为 trueFrame。这为您提供了一个内置的角半径,然后您可以根据需要进行调整。

        <Grid>               
<Frame
Padding = "0"
CornerRadius ="20"
IsClippedToBounds="true">
<Editor [...whatever...]/>
</Frame>
</Grid>

我目前正在使用这个解决方案,它对我有用。

关于xamarin - 如何制作圆角入口控件 Xamarin.Forms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37584006/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com