Replies: 1 comment 1 reply
-
Changing the resources from Static to Dynamic in the UserControl solves most of the issue except one: I have radio buttons that I style as a normal button like this:
Apparently I cant use a DynamicResource for a Style that is "BasedOn" another. Any ideas of how to resolve this problem? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an application that uses the MaterialDesignInXamlToolkit. This application has a UserControl that uses several design elements from the toolkit. Works fine.
Now I have an other application, where I want to use the UserControl in a separate Window. I do however not want other controls in the app to use the material design, only this window. So I can't include the resources in the App.xaml. I thought I could just set the ResourceDictionary on the Window.Resources, or on the UserControl.Resources, but when I do so, the UserControl won't load but I get an exception like
Exception: Cannot find resource named 'MaterialDesignToolForegroundButton'. Resource names are case sensitive.
Any hints of how I can include the toolkit in one window only in a way that the user control can use it?
Beta Was this translation helpful? Give feedback.
All reactions