xamarin.forms - How to set a foreground color in XAML? -


in xamarin.forms, how can set foreground color textbox in xaml?

i tried following:

  <style targettype="{x:type entry}">     <setter property="backgroundcolor" value="white" />     <setter property="foreground" value="black" />   </style> 

i've tried:

  <style targettype="{x:type entry}">     <setter property="backgroundcolor" value="white" />     <setter property="foregroundcolor" value="black" />   </style> 

when attempt launch application, receive unexpected exception.

any thoughts?

xamarin forums answered me:

  <style targettype="{x:type entry}">     <setter property="backgroundcolor" value="white" />     <setter property="textcolor" value="black" />   </style> 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -