我正在尝试使用材料设计制作 UI,但是当我想使用它时出现错误:无法解析资源“MaterialDesignFloatingHintTextBox”。
https://ibb.co/PcvdmqH错误看起来如何
我从 NuGet MaterialDesignThemes 安装,我导入了这个 xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
在 App.xaml 中我这样写:
<ResourceDictionary x:Key="MaterialDesign">
<ResourceDictionary.MergedDictionaries>
<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.Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Indigo.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
我该如何修复它?
米脂
桃花长相依
梵蒂冈之花