0

I want to change the colour of the cursor and the bottom border of an Entry field using XAML. (It is pink in colour at the moment). Changing the font colour didn't help and I can't see anything informative in the IntelliSense either. Can someone please tell me how to do this in XAML? Thank you.

<Entry
    x:Name="editorEmailAddress"
    TextColor="Purple" />

In Android, it shows in pink. enter image description here

Curiosity
  • 1,753
  • 3
  • 25
  • 46
  • 1
    You can't. you have to edit the resources file – Alex Jul 07 '17 at 14:06
  • @Alex Do you mean the styles.xml file in Xamarin.Android project? Can you please tell me how to do it, if it's not possible to do using XAML? – Curiosity Jul 07 '17 at 14:59

2 Answers2

4

Changing the colorAccent value in styles.xml (in Xamarin.Android project) will change the colour of the cursor and the bottom border of an Entry field.

<item name="colorAccent">#BA55D3</item>
Curiosity
  • 1,753
  • 3
  • 25
  • 46
1

https://developer.xamarin.com/guides/android/user_interface/material_theme/

follow the guidelines to resolve your problem.

or if you want to change it by Custom Render than follow below link.

Is it possible to change the colour of the line below / Border of a TextBox (Entry)