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
Post a Comment