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

Override Default Style in Merged Directory

Hallo,

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

Loader.
Up arrow icon