虽然我发现了很多"包装问题"的问题 但我的问题没有得到答案
我有一个棱晶溶液, 我想要一个 MyApplication. resources
组装, 收藏我所有应用程序的宽样式和模板 。
苏
- Step 1: I ve created the solution (WpfUsercontrollibrary)
- Step 2: folder /Themes was created
- Step 3: Generic.Ribbon.xaml was created
- Step 4: Generic.xaml was created
- Step 5: Generic.xaml has a MergedDictionary part to merge all the Generic.xxx.xaml files
- Step 6: MyApplication.Resources assembly referenced in prism module assembly
Step 7: loading the Generic.xaml in my module view (type: Microsoft.Windows.Controls.Ribbon.RibbonTab
<ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/MyApplication.Resources;component/Themes/Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary>
我也尝试过绝对变式
<ResourceDictionary Source="pack://application:,,,/ElairoCRM.Resources;component/Themes/Generic.xaml"/>
以上所有步骤都由
但没什么用,我错过了什么吗?
提前感谢您
Edit: I ve forgot the error that occured:
XamlParseException with inner exception FileNotFoundException having the message: The file or assembly "MyApplication.Resources, culture=neutral" or one of its dependencies, was not found.