Border Color for Editor in Xamarin.Forms

Yksh picture Yksh · Aug 25, 2015 · Viewed 28.7k times · Source

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?

Answer

hsjolin picture hsjolin · Jun 1, 2016

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!