I have an entry field in .NET MAUI and I have set the TextColor in the XAML file. However, when Text is dynamically loaded into the field, the TextColor automatically goes to Black. I understand that this is because I have set the UITheme of my app to be Light constantly and the default text colour for white would be black. However, I can not find a workaround as to how I can modify this so that the UItheming just for this specific content page is not applied or alternatively set this specific content page to use the dark theme.
<Entry x:Name="MatchName" MaxLength="35" Placeholder="Match Name..." FontFamily="" FontAttributes="Bold" FontSize="27" TextColor="{StaticResource White}" Text="{Binding OppositionTeam}" BackgroundColor="Transparent" />
I have also tried using the following in the C# code:
MatchName.TextColor = Colors.White;
Any suggestions would be much appriciated.
Thanks.
4