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 Metro style of the GroupBar control?

Platform: WPF |
Control: GroupBar |
.NET Framework: 4

Style of the Syncfusion controls can be overridden based on the build in themes of that control by adding corresponding ResourceDictionary. A unique key is given to every style, so that the styles can be customized using the BasedOn property.


Here, an example is illustrated to override the MetroStyle for the GroupBarItem and GroupViewItem by customizing the GroupBarItemStyle using the BasedOn property.


The following code demonstrates the same. 


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


Syntax for ResourceDictionary Source Path

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


Note: ResourceDictionary path may be different based on Controls.  





Step 2: Define the new Metro style for GroupBar using BasedOn Property.


Metro Style BasedOn Keys for the GroupBar controls are varied from other styles BasedOn Keys and please find the same from the below table.


GroupBar Control 

BasedOn Key 














Figure: GroupBarItem and GroupViewItem customization using BasedOn property.


Sample: GroupBarStyleOverridenSample

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