Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Prism 框架的典型 Silverlight 应用程序由模块和 Shell 项目组成。每个模块都可以有它自己的 App.xaml。我的问题是共享样式的最佳做法是什么?它们应该包含在 Shell App.xaml 中还是公共程序集中?
我发现的最好方法是将所有资源(也称为样式)存储在 Styles.xaml 中,然后在您的 app.xaml 中将其作为资源字典引用。然后使用 blend 4 在每个模块中添加设计时参考。