wpf执行时间错误,找不到颜色资源

时间:2019-09-10 20:33:05

标签: wpf material-design

这是我的App.xaml conf

            <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
            <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />

            <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Goldenrod.xaml" />
            <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />

            <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.DataGrid.xaml" />

我收到此错误: 找不到资源'themes / recommended / primary / materialdesigncolor.goldenrod.xaml'

但是,如果我将Blue更改为Goldenrod,则一切正常,我也可以在视图中将Goldenrod用作前景。 如果尝试将其用作我的主题中的主要对象,则会发生问题

0 个答案:

没有答案