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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to override Syncfusion themes?

Platform: WPF |
Control: TileViewControl

You can override the themes to the control's style by adding the corresponding ResourceDictionary in the sample and defining the new style with the BasedOn property. When the ResourceDictionary is added, you can acquire all the settings of the base style, and you can override them as desired. Using this approach, you can override the style for all the controls. Here, an example is illustrated to set the HeaderBackground for the TileViewItem by customizing the TileViewItemStyle using the BasedOn property.

Syntax for ResourceDictionary

<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/Controls/<ControlName>/Themes/<StyleName>Style.xaml"></ResourceDictionary>

Step 1: Add the Resource dictionary in App.xaml.


Syntax for BasedOn

BasedOn="{StaticResource <StyleName><ControlName>Style}"

Step 2: Define the new style using BasedOn Property


The following screenshot displays the customization of the theme.

Figure 1: Customized Theme




2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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