resource not found error !!! #3577
-
Beta Was this translation helpful? Give feedback.
Answered by
nicolaihenriksen
May 29, 2024
Replies: 1 comment 1 reply
-
@CallMeDang123 What does your Example from a working <Application ...
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Inherit"
ColorAdjustment="{materialDesign:ColorAdjustment}"
PrimaryColor="DeepPurple"
SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign2.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Keboo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@CallMeDang123 What does your
App.xaml
look like? You need to have the base resource dictionaries imported for{StaticResource MaterialDesignXyz}
to work...Example from a working
App.xaml
: