Reputation: 1127
Good Day Everyone. I want to change the text color of the Labels in my Xamarin.Forms project. I've already tried using FontColor but it didn't work.
Here's where I want the text color to be changed. I want the Name and the Department to be color Yellow. Can you please teach me how? Thanks a lot.
<Label Grid.Column="1"
Text="{Binding Name}"
FontSize="24"/>
<Label Grid.Column="1"
Grid.Row="1"
Text="{Binding Department}"
FontSize="18"
Opacity="0.6"/>
Upvotes: 2
Views: 8840
Reputation: 12190
Use the TextColor
property:
Using a color:
TextColor="Yellow"
Using a binding:
TextColor="{Binding MyTextColor}"
Upvotes: 4