Xamarin表格PCL上的边框半径 [英] Border radius on Entry Xamarin Forms PCL

查看:111
本文介绍了Xamarin表格PCL上的边框半径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Xamarin的XAML中设置条目的边界半径,还是使用自定义渲染器或其他工具?

Is there a way to set a border radius on an Entry in Xamarin's XAML, or by using a custom renderer or something ?

我尝试过的所有方法现在没有任何效果,但是对我的应用程序来说,如果我有圆形边框,那会更好。

Everything I've tried up to now has no effect, but for my application it would be really better if I had round borders.

在此先感谢您的回答!

PS:我已经检查过这篇文章,但我在那儿找不到答案:)

PS : I've checked this post but I've not found my answer there :)

推荐答案

我认为您可以在其中使用网格1行1列
在网格内,您可以添加条目,例如,此控件,位于同一(唯一)单元格中。您应该有一个带有圆角的条目...

I think you can use a grid with 1 row and 1 column Inside the grid you can add your Entry and, for example, this control, in the same (the only) cell. You should have an Entry with rounded corners...

这是另一个有用的控件( XFShape )。通过共享代码为您的移动应用创建图形内容视图!对于Android和iOS。

This is another useful control (XFShape). Create shapes content views from shared code for your mobile apps! For Android and iOS.

这篇关于Xamarin表格PCL上的边框半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆