<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by gerrard575</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/gerrard575/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by gerrard575</title>
		<link>http://channel9.msdn.com/Niners/gerrard575/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/gerrard575/Discussions</link>
	<language>en</language>
	<pubDate>Tue, 21 May 2013 12:13:32 GMT</pubDate>
	<lastBuildDate>Tue, 21 May 2013 12:13:32 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - Handling Multiple Instances of Module with MEF</title>
		<description><![CDATA[<p>We are desinging an LOB application using Silverlgiht 5 ,PRISM 4.1 and MEF as prism's container.</p><p>Issue is</p><p>We desinged a &nbsp;NewOrders module whichc will take New orders. This module Shell has a TabControl with TabItems as&nbsp;SearchCustomerView,CustomerInfoEnter View,CheckCustomersCreditHistory etc.. and all these have their own viewmodels with partcreation policy for views and viewmodels are default&nbsp;<strong>Shared</strong>. CustomerInofEnterViewModel has a Import of ISearchCustomerViewModel, which uses Customerobject(on SearchCustomerViewmodel) if he was found on search screen to fill its screen to save a service call and similarly CheckCustomerCreditHistory uses Customer object on CustomerInforEnterViewmodel to run the check.</p><p>Now that we have requirement of User can place multiple orders? which means we have to create multiple instances on NewOrders Module.</p><p>So we decided to make all views and viewmodels partCreation policy as NonShared ,So all imports have new instances, so SearchCustomerView code behind has a import of IsearchCustomerViewmodel and CustomerInfoViewmodel has a import of SearchCustomerViewmodel and both are diffrent and i cannot share information accross other viewmodel's</p><p>How can I handle this situation?</p><p>&nbsp;</p><p>Any help ideas are greatly appreciated.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/ea81d511d90d43e0be8ca07c00df2c0b#ea81d511d90d43e0be8ca07c00df2c0b</link>
		<pubDate>Tue, 26 Jun 2012 13:32:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Handling-Multiple-Instances-of-Module-with-MEF/ea81d511d90d43e0be8ca07c00df2c0b#ea81d511d90d43e0be8ca07c00df2c0b</guid>
		<dc:creator>gerrard575</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/gerrard575/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>