Forum General

How to use Dark Theme Light Theme in Xamarin Forms?

HellooHelloo Member ✭✭

I am new to Xamarin Forms, I want to use a logo that changes based on the device mode, if it's dark mode, the logo will be white and if it's light mode, the logo will be black. I only found examples on how to do it for colors by adding them to the resource dictionaries(the example is attached below), I tried to do it for the logo, but It didn't work.Can someone share tips or a link of a tutorial that show how to do that?




<!--  Colours  -->
<!--<Color x:Key="MainPage">#F58220</Color>-->

Answers

Sign In or Register to comment.