We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Theme Samples

Hello,

The documentation on Theme Support isn't very clear on switching between themes in an app.
Is there any way I can see how it works like in the Android app (Xamarin UI Controls)

Thanks,
Jonathan

3 Replies

IM Iyyappan Mani Syncfusion Team April 22, 2019 12:07 PM UTC

Hi Jonathan, 
  
Thanks for using the Syncfusion products, 
  
We have already planned to include these information in our documentation.  

We have prepared the sample for your requirement and you can find the sample below. 
  
  
Code snippet for switching the theme: 
var mergedDictionaries = resources.MergedDictionaries; 
var lightTheme = mergedDictionaries.OfType<LightTheme>().FirstOrDefault(); 
if (lightTheme != null) 
    { 
       mergedDictionaries.Remove(lightTheme); 
    } 
  
mergedDictionaries.Add(new DarkTheme()); 
  
Regards, 
Iyyappan M. 
 


AN ANSON June 19, 2019 02:26 PM UTC

Change theme can cover statusbar color as well?



RA Rachel A Syncfusion Team June 20, 2019 01:33 PM UTC

Hi Boydens, 
 
Greetings from Syncfusion. In the theming support provided for the Syncfusion controls, the status bar color will not be changed. Please find the below links for additional information. 
 
 
 
Please let us know if you have any concerns. 
 
Regards, 
Rachel. 


Loader.
Live Chat Icon For mobile
Up arrow icon