Hold on! What has happened with the MainPage
—no button, no text?
What is happening here is we have not specified colors for these elements, so the default color of the text has come up as white. Open up MainPage.xaml
and change the text colors accordingly:
<Label x:Name="DesciptionLabel" Text="{Binding DescriptionMessage}" TextColor="Black" Font="Arial, 20" Grid.Row="0" Grid.Column="0"/> <Button x:Name="SpeakButton" Text="{Binding SpeakTitle}" TextColor="Blue" Command="{Binding SpeakCommand}" Grid.Row="2" Grid.Column="0"/>
It might be a good idea to color the background of the Entry
object as well, so we can see the text definition:
<Entry x:Name="SpeakEntry" Placeholder="{Binding SpeakEntryPlaceholder}" BackgroundColor="Silver" Text="{Binding SpeakText, Mode=TwoWay}" Grid.Row="1" Grid.Column="0"/>
Now run it again and see the text, button, and entry background display.
But wait! What if we don't want these colors to change...