Best method for creating "themes" and switching between them?

TidBitsTidBits Member
edited October 2018 in Xamarin.Forms

Hey Guys,

I've been wanting to add a Light and Dark theme to my application. I'm looking to change the properties of multiple views on the press of a button.

My current implementation works, but if there's a more efficient way that'd obviously be the direction I want to go in.

I currently have two XAML files...

Both of these are resource dictionaries with a code behind page.

On startup, I'm setting my Application.Current.Resources to a new LightTheme and on my button press to a new DarkTheme.

Everything works fine and I have found no issues yet, but the implementation just feels greasy.

I've read some articles but haven't found any good resources that demonstrate changing a suite of view's and their properties.

Thanks for the help


Sign In or Register to comment.