Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: ViewModel injection

$
0
0
Using Prism 5 with MEF (Framework 4.5.2).
In 2 different modules I want to use the same view, but with different ViewModels.
I cannot figure out how to do this without hardcoding View and ViewModel instantiation, then setting View's DataContext before registering with RegionManager.
Any hints on this ?

Also I would like (I think) to use ViewModel-first with MEF, but cannot figure out how.

Viewing all articles
Browse latest Browse all 1878

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>