How to split view into modules in mv-vm

I want to share my project views on sereveral modules. I want to have a main project that will have a link to all modules, and this main project will generate a view from the modules.

My question is: how can I link all styles from the application to other modules?

Does it automatically recognize them?

and how will presentation model templates be displayed? because now they r in the resource dictionary that I combined in app.xaml

where shpuld I put them (I want them in their modular project), how can I load these resources?

+3
source share
2 answers

, , , Prism: http://www.codeplex.com/CompositeWPF

, .

, , Prism, - ResourceDictionaries, , , : Composite WPF (Prism)

. , .

+1

. , Composite WPF, , , Managed Extensibility Framework ( MEF). , , , , MEF. MEF , "" DataTemplates (Views). ViewModel , , WPF . , .

, app.xaml "" View, ( , ).

+2

Source: https://habr.com/ru/post/1713948/


All Articles