边框颜色为编辑在Xamarin.Forms [英] Border Color for Editor in Xamarin.Forms

查看:1952
本文介绍了边框颜色为编辑在Xamarin.Forms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能做一个边框颜色为编辑在Xamarin.Forms?



我用这个的链接,但它仅适用于Android系统。我希望它在所有平台上工作!



我有点新手了这一点。
请帮帮我。



任何想法?


解决方案

您也可以使用 StackLayout BackgroundColor中=你的颜色和<$ C包裹你的编辑器archieve这$ C>填充=1并设置 BackgroundColor中您的编辑器来同色系的形式的。



事情是这样的:




 < StackLayout BackgroundColor中=白> 
将; StackLayout BackgroundColor中=黑填充=1>
<编辑BackgroundColor中=白/>
< / StackLayout>

< / StackLayout>




不就是看中了,但是这至少可以让你的边界!


How can i make a border color for Editor in Xamarin.Forms?

I used this link, but it works only for Android. I want it to work in all platforms!

I'm a little bit newbie to this. Please help me.

Any idea?

解决方案

You may also archieve this by wrapping your Editor with a StackLayout with BackgroundColor="your color" and Padding="1" and set the BackgroundColor of your Editor to the same color of the form.

Something like this:

<StackLayout BackgroundColor="White">
      <StackLayout BackgroundColor="Black" Padding="1">
          <Editor BackgroundColor="White" />
      </StackLayout>
  ...
</StackLayout>

Not that fancy, but this will at least get you a border!

这篇关于边框颜色为编辑在Xamarin.Forms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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