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

Override Default Style in Merged Directory

Thread ID:




129526 Mar 23,2017 01:17 PM UTC WPF 0
Tags: ChromelessWindow
Benjamin Siegmund
Asked On March 23, 2017 01:17 PM UTC


i have a simple problem. 
I have defined a Style for the Chromeless Window. The Style is merged with other Styles for Syncfusion Frameworkobjects, so that I have one global Directory.
This directory gets merged in the app.xaml of my main project.
All styles get globally applied to the Syncfusion Elements except that one for the chromeless window.
It seems that the global style gets overriden by the syncfusion defaultstyle for chromeless window.
If i apply the style in the xaml on the chromeless window itself, the style gets correctly applied.
Am I doing something wrong?

Here a short example:

Global Ovverride
<Style BasedOn="{StaticResource DefaultChromelessWindowStyle}" TargetType="{x:Type syncfusion:ChromelessWindow}" />
I also tested it with no Key in the style, but this also doesn't work.

if I'm applying the style in the code-behind by searching it with FindResource, the style gets overriden correctly.
But this is not a solution for us.

I also have an example added to this post.
I hope you can get a solution for my problem to define a global style for your chromeless window.

Thanks a lot.
Best regards

Attachment: UIThemes_7188a1ce.zip


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

or the page will be automatically redirected to 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