Hi All!
I have a syncfusion theme (MaterialDark) applied to my WPF app.
Without the theme applied, I can set the background color of a TextAnnotaion in the normal way in bothe XAML and c#, no problem.
When I apply the theme, it overrides this setting and renders the TextAnnotation with a black background and no matter what I try, I
can’t seem to get rid of it.
I have tried:
-
setting up a Resource dictionary in XAML
-
setting the style to null and then applying inline style (in both code behind and XAML)
Nothing seems to work!
Has anyone encountered this issue beforew or know of any solutions?
It’s driving me mad!
- Scott Green asked 1 year ago
- You must login to post comments
Hi Scott
It’s probably a conflict in a Xaml resource dictionary. However we can’t say what without seeing the code.
Could you post a code sample our engineers can investigate?
- Andrew Burnett-Thompson answered 1 year ago
- You must login to post comments
Hi Andrew,
Thanks for coming back to me – not sure how much of the code you need to see, but this is my XAML:
this works perfectly without the theme applied.
When I apply the syncfusion theme in my MainWindow.xaml, thus:
syncfusionskin:SfSkinManager.VisualStyle=”FluentDark”
the Foreground property still works (I can change it to whatever colour I like) but the background element renders black and whatever I do, I can’t change it.
If you need to see more of the code, let me know.
- Scott Green answered 1 year ago
- last edited 1 year ago
-
Hi Scott, from the code provided we don’t have enough info to reproduce this problem. Perhaps you can create a small project which reproduces the issue and upload it to github? Best regards, Andrew
- You must login to post comments
Hi, I posted a reply (twice) hours ago but it doesn’t seem to have appeared?
- Scott Green answered 1 year ago
- last edited 1 year ago
-
Hi Scott, we’re spam filtering comments and answers. Every new user on the scichart forums has to have posts reviewed by a person. After some time you’ll be able to post immediately. Hope this helps! See https://www.scichart.com/changes-to-the-scichart-forum-permissions/ For further details.
- You must login to post comments
Please login first to submit.