开发者

Best Practice for Sharing Styles in a Silverlight Application that uses the Prism Framework

开发者 https://www.devze.com 2023-03-18 09:29 出处:网络
A typ开发者_如何学Goical Silverlight Application that uses the Prism Framework consists of Modules and a Shell project.Each module can have it\'s own App.xaml.My question is what is the best practice

A typ开发者_如何学Goical Silverlight Application that uses the Prism Framework consists of Modules and a Shell project. Each module can have it's own App.xaml. My question is what is the best practice for sharing styles? Should they be contained in the Shell App.xaml or in a common Assembly?


The best way I found was to store all resources aka styles in Styles.xaml and then reference it in your app.xaml as a resource dictionary. Then add a design time reference in each module doing so using blend 4.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号