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

How to override Syncfusion themes?

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.

App.xaml

Syntax for BasedOn

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

Step 2: Define the new style using BasedOn Property

XAML

The following screenshot displays the customization of the theme.

Figure 1: Customized Theme

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
4173 02/26/2015 02/26/2015 WPF TileViewControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.