How can i apply a style to, for example, a button, when using the new ThemeManager to theme MS WPF controls? If I apply any style, the IG theme is disregarded? See the sample app. It shows a button with an explicit style that just sets its width and height. But when i apply it to my button, the button no longer takes the properties from the ThemeManager. I tried BasedOn, it didn't help. Also, Implicit styling of a button seems to be ignored (commented out in my sample as to show No Style). Is there a way to accomplish styling the button based of the IG Theme?
Hello Travis,
Thank you for your reply and the feedback on this issue. I have been further investigating and currently, the approach I have suggested in my previous reply seems to be the best in the scenario that you are having.
We are continuously working on improving the quality of the controls and your feedback is valuable in this process. If you have any suggestions on what we can change in Themes/TheamManager to make it more easy to use and better for you, it would be great to share your thoughts on that matter. You can do that here in the forums or you can also create a support ticket through our website or submit a new Product Idea for something that you think it will help improving our products.
If I can assist you with anything else, please do not hesitate to ask.
i've simply given up on infragistics themes, there always another problem. not worth the time...
Hi Travis,
I've been wandering did you manage to check out my last suggestion and is it working for you.
I'll be glad to help further if needed.
Thanks,
Sorry for the late response.
The alternative on using DynamicResource is to manually add RCs from the theme containing the styles you need to extend to your application resources. This way you don't need to subclass the theme class. Using this approach you could also base your extended styles on the implicit ones from the theme - i.e. BasedOn="{StaticResource {x:Type Button}}".
Check out the attached sample solution.
Hope this helps,
any solution yet?