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

New Post: MEF Imported property is null

$
0
0
Hi Eager,

It would be helpful if you could provide us with a small sample solution which would show the problem you are facing. Therefore, we would be able to give you better support for this scenario.

However, as a workaround, you would be able to import the property to the ViewModel by passing it as an argument on the constructor. You would need to decorate the ViewModel constructor with "[ImportConstructor]", in order to get the container resolve every constructor parameter.

Regards,

Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky

Viewing all articles
Browse latest Browse all 1878

Trending Articles



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