[英]Visual Studio Custom Window for VSIX using WPF Can't find theme in other project
I developed a stand alone WPF project with the ShinyBlue.xaml theme which works fine.我开发了一个带有 ShinyBlue.xaml 主题的独立 WPF 项目,效果很好。 Now I want to create a VSIX project to include some user controls from that project right in Visual Studio.
现在我想创建一个 VSIX 项目,以在 Visual Studio 中包含该项目中的一些用户控件。
Problem问题
The VSIX project XAML shows the error above. VSIX 项目 XAML 显示了上述错误。 Where poc:UCMAIN is a user control in the first project that works perfect!
其中 poc:UCMAIN 是第一个完美运行的项目中的用户控件!
Possible Solutions可能的解决方案
Question问题
Why does VSIX project show the error above?为什么VSIX项目显示上面的错误? How do I fix it?
我该如何解决?
Solution VSIX custom windows doesn't appear to reach into the other included Project's XAML resource directories.解决方案VSIX 自定义窗口似乎无法访问其他包含的项目的 XAML 资源目录。 Even when the merged dictionary points to the theme.
即使合并的字典指向主题。
I was using global styling with the targetType parameter and the basedOn parameter specifying a key I placed into the theme to "grab" that color for those buttons.我使用全局样式与 targetType 参数和 basedOn 参数指定我放置在主题中的键以“抓取”这些按钮的颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.