边框颜色为编辑在Xamarin.Forms [英] Border Color for Editor in 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
withBackgroundColor="your color"
andPadding="1"
and set theBackgroundColor
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屋!