Modularity and resources

Dec 14, 2008 at 9:07 AM
Edited Dec 14, 2008 at 9:15 AM

Is it possible to share resource dictionary with styles and skins between modules? Will it work with ondemand loading?

Alexey Zakharov
Dec 14, 2008 at 9:18 AM

Are you talking about share the resources between WPF Modules? Or WPF Modules and Silverlight Modules?

If you are talking about share the resouces between WPF Modules, it's possible to do that.

>>Will it work with ondemand loading?

I haven't tried it yet but it should work.
Dec 14, 2008 at 9:53 AM
I'm talking about silverlight =)
Dec 14, 2008 at 3:11 PM
Yes. You can share the resources between Silverlight Modules if you are using Silverlight Toolkit. But there are a lot of problems.. You can't switch the style on the fly os you have to reload the application from code. If you do that, your browser will be crashed some time..  You won't be able to apply the style to the nested controls. you will need to apply it explicitly. I understand that you are not asking about those problems. So, I would say "Yes! you can share the style and skin between Silverlight Modules". :)
Dec 14, 2008 at 7:17 PM
It would be nice if u will write about it in your blog =)

I think that sharing of resources between modules should be build-in feature of prism. Also there is no app.xaml, so the standart way to add styles and skins inside of module is to make them resource of some control?