Created
December 16, 2020 10:44
-
-
Save sthewissen/1f00e0a660d84f259abb8278396af11d to your computer and use it in GitHub Desktop.
AppThemeBinding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ContentPage> | |
<StackLayout Margin="20"> | |
<Label Text="This text is green in light mode, and red in dark mode." | |
TextColor="{AppThemeBinding Light=Green, Dark=Red}" /> | |
<Image Source="{AppThemeBinding Light=lightlogo.png, Dark=darklogo.png}" /> | |
</StackLayout> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment