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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Theme Samples

Thread ID:

Created:

Updated:

Platform:

Replies:

144121 Apr 19,2019 04:32 PM UTC Jun 20,2019 01:33 PM UTC Xamarin.Forms 3
loading
Tags: General
Boydens Jonathan
Asked On April 19, 2019 04:32 PM UTC

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

Iyyappan Mani [Syncfusion]
Replied On 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. 
 

ANSON
Replied On June 19, 2019 02:26 PM UTC

Change theme can cover statusbar color as well?


Rachel A [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon