<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>patterns &amp; practices: Prism</title><link>http://compositewpf.codeplex.com/project/feeds/rss</link><description>Prism provides guidance designed to help you more easily design and build rich, flexible, and easy-to-maintain Windows Presentation Foundation &amp;#40;WPF&amp;#41; desktop applications, Silverlight Rich Internet Applications &amp;#40;RIAs&amp;#41;, and Windows Phone 7 applications.</description><item><title>New Post: IRegionMemberLifetime</title><link>http://compositewpf.codeplex.com/discussions/330923</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi pedro,&lt;/p&gt;
&lt;p&gt;you are right, the problem was the PartCreationPolicy.NonShared Attribute in View and ViewModel&lt;/p&gt;
&lt;p&gt;I got it to work&lt;/p&gt;
&lt;p&gt;Thanks for the help&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>PeterForstmeier</author><pubDate>Thu, 23 Feb 2012 06:58:07 GMT</pubDate><guid isPermaLink="false">New Post: IRegionMemberLifetime 20120223065807A</guid></item><item><title>New Post: Dynamic Views/Skins</title><link>http://compositewpf.codeplex.com/discussions/342383</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;I am currently attempting to create a&amp;nbsp;mechanism whereby the user can select a particular&amp;nbsp;skin for a Prism application.&amp;nbsp; Currently this is done with a ContentControl at the Shell level, with bindings set as such:&lt;/p&gt;
&lt;pre style="font-family:Consolas; background:white; color:black; font-size:13px"&gt;&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:darkblue"&gt;ContentControl&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:purple"&gt;Content&lt;/span&gt;&lt;span style="color:blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color:darkblue"&gt;Binding&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;SelectedProfile.Content&lt;/span&gt;&lt;span style="color:blue"&gt;}&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:purple"&gt;ContentTemplate&lt;/span&gt;&lt;span style="color:blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color:darkblue"&gt;Binding&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;SelectedProfile&lt;/span&gt;&lt;span style="color:blue"&gt;.&lt;/span&gt;&lt;span style="color:blue"&gt;ContentTemplate&lt;/span&gt;&lt;span style="color:blue"&gt;}&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;I have a ComboBox which the user can drop down to select a different view profile.&lt;/p&gt;
&lt;p&gt;The problem occurs upon the 2nd selection.&amp;nbsp; The ViewProfile.Content for the initial ViewProfile and the&amp;nbsp;second ViewProfile.Content both&amp;nbsp;have&amp;nbsp;controls with the same region name&amp;nbsp;assigned via the attached property&amp;nbsp;RegionManager.RegionName=&amp;quot;regionname&amp;quot;.&amp;nbsp;
 When the 2nd ViewProfile.Content is set as the content to the Shell's ContentControl.Content property, the RegionManager.RegionName gets&amp;nbsp;assigned a second time,&amp;nbsp;but instead of simply attaching the control to the already-created region, it appears
 that Prism&amp;nbsp;attempts to recreate the Region from scratch, resulting in a very ugly ArgumentException.&lt;/p&gt;
&lt;p&gt;What is the best way of ensuring Regions are only created once and allow this scenario to work as expected? :)&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;
&lt;/div&gt;</description><author>MichaelDBang</author><pubDate>Wed, 22 Feb 2012 23:37:39 GMT</pubDate><guid isPermaLink="false">New Post: Dynamic Views/Skins 20120222113739P</guid></item><item><title>New Post: Dynamic Views/Skins</title><link>http://compositewpf.codeplex.com/discussions/342383</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;I am currently attempting to create a&amp;nbsp;mechanism whereby the user can select a particular&amp;nbsp;skin for a Prism application.&amp;nbsp; Currently this is done with a ContentControl at the Shell level, with bindings set as such:&lt;/p&gt;
&lt;pre style="font-family:Consolas; background:white; color:black; font-size:13px"&gt;&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:darkblue"&gt;ContentControl&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:purple"&gt;Content&lt;/span&gt;&lt;span style="color:blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color:darkblue"&gt;Binding&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;SelectedProfile.Content&lt;/span&gt;&lt;span style="color:blue"&gt;}&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:purple"&gt;ContentTemplate&lt;/span&gt;&lt;span style="color:blue"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="color:darkblue"&gt;Binding&lt;/span&gt;&lt;span style="color:red"&gt;&amp;nbsp;SelectedProfile&lt;/span&gt;&lt;span style="color:blue"&gt;.&lt;/span&gt;&lt;span style="color:blue"&gt;ContentTemplate&lt;/span&gt;&lt;span style="color:blue"&gt;}&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;I have a ComboBox which the user can drop down to select a different view profile.&lt;/p&gt;
&lt;p&gt;The problem occurs upon the 2nd selection.&amp;nbsp; The ViewProfile.Content for the initial ViewProfile and the&amp;nbsp;second ViewProfile.Content both&amp;nbsp;have&amp;nbsp;controls with the same region name&amp;nbsp;assigned via the attached property&amp;nbsp;RegionManager.RegionName=&amp;quot;regionname&amp;quot;.&amp;nbsp;
 When the 2nd ViewProfile.Content is set as the content to the Shell's ContentControl.Content property, the RegionManager.RegionName gets&amp;nbsp;assigned a second time,&amp;nbsp;but instead of simply attaching the control to the already-created region, it appears
 that Prism&amp;nbsp;attempts to recreate the Region from scratch, resulting in a very ugly ArgumentException.&lt;/p&gt;
&lt;p&gt;What is the best way of ensuring Regions are only created once and allow this scenario to work as expected? :)&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;
&lt;/div&gt;</description><author>MichaelDBang</author><pubDate>Wed, 22 Feb 2012 23:37:39 GMT</pubDate><guid isPermaLink="false">New Post: Dynamic Views/Skins 20120222113739P</guid></item><item><title>New Post: Need to Debug through SilverLight PRISM but can't</title><link>http://compositewpf.codeplex.com/discussions/323427</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on my understanding, as you copied the compiled Prism assemblies in the debug\bin folder of each project, your application seems to be using those assemblies instead of the Prism projects.&lt;/p&gt;
&lt;p&gt;As far as I know, you should be able to replace the compiled Prism assemblies with their corresponding projects without problems. It would be helpful if you could provide us with more information regarding the error you are experiencing when trying to compile the Prism projects (for example, the classes or assemblies that are missing, the references of each project, etc).&lt;/p&gt;
&lt;p&gt;Also, as a possible approach, you could try to replace the Prism assemblies with their corresponding projects in one of the several Quickstarts provided with Prism. If, after doing so, you cannot compile the Prism projects in the Quickstart, it would be helpful if you could provide us with the modified Quickstart in order to help you understanding what is preventing the Prism projects from being compiled.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Damian Cherubini&lt;br /&gt; &lt;a href="http://blogs.southworks.net/dcherubini"&gt;http://blogs.southworks.net/dcherubini&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>DCherubini</author><pubDate>Wed, 22 Feb 2012 21:03:08 GMT</pubDate><guid isPermaLink="false">New Post: Need to Debug through SilverLight PRISM but can't 20120222090308P</guid></item><item><title>New Post: Need to Debug through SilverLight PRISM but can't</title><link>http://compositewpf.codeplex.com/discussions/323427</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on my understanding, as you copied the compiled Prism assemblies in the debug\bin folder of each project, your application seems to be using those assemblies instead of the Prism projects.&lt;/p&gt;
&lt;p&gt;As far as I know, you should be able to replace the compiled Prism assemblies with their corresponding projects without problems. It would be helpful if you could provide us with more information regarding the error you are experiencing when trying to compile the Prism projects (for example, the classes or assemblies that are missing, the references of each project, etc).&lt;/p&gt;
&lt;p&gt;Also, as a possible approach, you could try to replace the Prism assemblies with their corresponding projects in one of the several Quickstarts provided with Prism. If, after doing so, you cannot compile the Prism projects in the Quickstart, it would be helpful if you could provide us with the modified Quickstart in order to help you understanding what is preventing the Prism projects from being compiled.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Damian Cherubini&lt;br /&gt; &lt;a href="http://blogs.southworks.net/dcherubini"&gt;http://blogs.southworks.net/dcherubini&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>DCherubini</author><pubDate>Wed, 22 Feb 2012 21:03:08 GMT</pubDate><guid isPermaLink="false">New Post: Need to Debug through SilverLight PRISM but can't 20120222090308P</guid></item><item><title>New Post: Best practice to creating a new view and registering with a region</title><link>http://compositewpf.codeplex.com/discussions/318924</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on my understanding, the problem seems to be that you are trying to retrieve the context of a region in the view model before the construction of its view is finished. As the region is not available until the view is properly created, the region does not exist during the construction of the view model.&lt;/p&gt;
&lt;p&gt;As a possible approach you could subscribe to the &lt;strong&gt;CollectionChanged &lt;/strong&gt;event of the &lt;strong&gt;Regions &lt;/strong&gt;collection of the &lt;strong&gt;RegionManager &lt;/strong&gt;in the view model's constructor. When the &lt;strong&gt;ValidationGroupsRegion &lt;/strong&gt;is added to the &lt;strong&gt;RegionManager &lt;/strong&gt;this event will be fired and you should be able to retrieve the context of the region. For example, you could do something something similar to this:&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;[ImportingConstructor]
&lt;span style="color: blue;"&gt;public&lt;/span&gt; ValidationGroupViewModel(IRegionManager regionManager)
{
    _regionManager = regionManager;
    _regionManager.Regions.CollectionChanged += Regions_CollectionChanged;&lt;span style="color: blue;"&gt;&lt;/span&gt;
}

&lt;span style="color: blue;"&gt;void&lt;/span&gt; Regions_CollectionChanged(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (_regionManager.Regions.ContainsRegionWithName(RegionNames.ValidationGroupsRegion))
    {
        _regionManager.Regions.CollectionChanged -= Regions_CollectionChanged;
        &lt;span style="color: blue;"&gt;var&lt;/span&gt; RegionContext = _regionManager.Regions[RegionNames.ValidationGroupsRegion].Context;
        &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Policy = RegionContext &lt;span style="color: blue;"&gt;as&lt;/span&gt; PasswordPoliciesModel;
    }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;However, take into account that the decision of which approach you should use will depend mostly of your personal preferences and the requirements of your scenario.&lt;/p&gt;
&lt;p&gt;You can find more information about the &lt;strong&gt;RegionContext &lt;/strong&gt;in the following section of the Prism documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff921098%28PandP.40%29.aspx#sec41"&gt;Chapter 7: Composing the User Interface - Sharing Data Between Multiple Regions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope you find this useful,&lt;/p&gt;
&lt;p&gt;Damian Cherubini&lt;br /&gt; &lt;a href="http://blogs.southworks.net/dcherubini"&gt;http://blogs.southworks.net/dcherubini&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>DCherubini</author><pubDate>Wed, 22 Feb 2012 20:24:30 GMT</pubDate><guid isPermaLink="false">New Post: Best practice to creating a new view and registering with a region 20120222082430P</guid></item><item><title>New Post: Best practice to creating a new view and registering with a region</title><link>http://compositewpf.codeplex.com/discussions/318924</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on my understanding, the problem seems to be that you are trying to retrieve the context of a region in the view model before the construction of its view is finished. As the region is not available until the view is properly created, the region does not exist during the construction of the view model.&lt;/p&gt;
&lt;p&gt;As a possible approach you could subscribe to the &lt;strong&gt;CollectionChanged &lt;/strong&gt;event of the &lt;strong&gt;Regions &lt;/strong&gt;collection of the &lt;strong&gt;RegionManager &lt;/strong&gt;in the view model's constructor. When the &lt;strong&gt;ValidationGroupsRegion &lt;/strong&gt;is added to the &lt;strong&gt;RegionManager &lt;/strong&gt;this event will be fired and you should be able to retrieve the context of the region. For example, you could do something something similar to this:&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;[ImportingConstructor]
&lt;span style="color: blue;"&gt;public&lt;/span&gt; ValidationGroupViewModel(IRegionManager regionManager)
{
    _regionManager = regionManager;
    _regionManager.Regions.CollectionChanged += Regions_CollectionChanged;&lt;span style="color: blue;"&gt;&lt;/span&gt;
}

&lt;span style="color: blue;"&gt;void&lt;/span&gt; Regions_CollectionChanged(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (_regionManager.Regions.ContainsRegionWithName(RegionNames.ValidationGroupsRegion))
    {
        _regionManager.Regions.CollectionChanged -= Regions_CollectionChanged;
        &lt;span style="color: blue;"&gt;var&lt;/span&gt; RegionContext = _regionManager.Regions[RegionNames.ValidationGroupsRegion].Context;
        &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Policy = RegionContext &lt;span style="color: blue;"&gt;as&lt;/span&gt; PasswordPoliciesModel;
    }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;However, take into account that the decision of which approach you should use will depend mostly of your personal preferences and the requirements of your scenario.&lt;/p&gt;
&lt;p&gt;You can find more information about the &lt;strong&gt;RegionContext &lt;/strong&gt;in the following section of the Prism documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff921098%28PandP.40%29.aspx#sec41"&gt;Chapter 7: Composing the User Interface - Sharing Data Between Multiple Regions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope you find this useful,&lt;/p&gt;
&lt;p&gt;Damian Cherubini&lt;br /&gt; &lt;a href="http://blogs.southworks.net/dcherubini"&gt;http://blogs.southworks.net/dcherubini&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>DCherubini</author><pubDate>Wed, 22 Feb 2012 20:24:30 GMT</pubDate><guid isPermaLink="false">New Post: Best practice to creating a new view and registering with a region 20120222082430P</guid></item><item><title>New Post: IRegionMemberLifetime</title><link>http://compositewpf.codeplex.com/discussions/330923</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I think you will also need PartCreationPolicy.NonShared on your views. I also think you need to return false in IsNavigationTarget. As far as I understand, if you return true you are saying the existing viewmodel instance can deal with the navigation request. If you return false, a new viewmodel/view should get created and the old one should then get disposed.&lt;/p&gt;
&lt;p&gt;There is a useful diagram showing the navigation flow here: &lt;a href="http://msdn.microsoft.com/en-us/library/gg430861(v=pandp.40).aspx"&gt;http://msdn.microsoft.com/en-us/library/gg430861(v=pandp.40).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps - I've been through the pain!&lt;/p&gt;&lt;/div&gt;</description><author>Pedro_C</author><pubDate>Wed, 22 Feb 2012 19:54:36 GMT</pubDate><guid isPermaLink="false">New Post: IRegionMemberLifetime 20120222075436P</guid></item><item><title>Reviewed: Prism 4 - November 2010 (Feb 22, 2012)</title><link>http://compositewpf.codeplex.com/releases/view/55576#ReviewBy-tdracz</link><description>Rated 2 Stars &amp;#40;out of 5&amp;#41; - It seems that 4.1 release still has references to SL 4 libraries, which causes the following errors in Code Analysis&amp;#58;&amp;#10;&amp;#10;The indirectly-referenced Silverlight assembly &amp;#39;mscorlib, Version&amp;#61;2.0.5.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;7cec85d7bea7798e&amp;#39; could not be found&amp;#40;...&amp;#41;&amp;#10;This assembly was referenced by&amp;#58; &amp;#40;...&amp;#41;Microsoft.Practices.Prism.dll.</description><author>tdracz</author><pubDate>Wed, 22 Feb 2012 16:29:52 GMT</pubDate><guid isPermaLink="false">Reviewed: Prism 4 - November 2010 (Feb 22, 2012) 20120222042952P</guid></item><item><title>Reviewed: Prism 4 - November 2010 (Feb 22, 2012)</title><link>http://compositewpf.codeplex.com/releases/view/55576#ReviewBy-tdracz</link><description>Rated 2 Stars &amp;#40;out of 5&amp;#41; - It seems that 4.1 release still has references to SL 4 libraries, which causes the following errors in Code Analysis&amp;#58;&amp;#10;&amp;#10;The indirectly-referenced Silverlight assembly &amp;#39;mscorlib, Version&amp;#61;2.0.5.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;7cec85d7bea7798e&amp;#39; could not be found&amp;#40;...&amp;#41;&amp;#10;This assembly was referenced by&amp;#58; This assembly was referenced by&amp;#58; &amp;#40;...&amp;#41;Microsoft.Practices.Prism.dll.</description><author>tdracz</author><pubDate>Wed, 22 Feb 2012 16:28:06 GMT</pubDate><guid isPermaLink="false">Reviewed: Prism 4 - November 2010 (Feb 22, 2012) 20120222042806P</guid></item><item><title>New Post: SL5 InteractionRequestTrigger</title><link>http://compositewpf.codeplex.com/discussions/282474</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I found that by inalling Expression Blend preview for silverlight 5 solved the issue.&amp;nbsp; It ships with the dlls versions&amp;nbsp;required.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ltheONEl</author><pubDate>Wed, 22 Feb 2012 12:16:29 GMT</pubDate><guid isPermaLink="false">New Post: SL5 InteractionRequestTrigger 20120222121629P</guid></item><item><title>New Post: SL5 InteractionRequestTrigger</title><link>http://compositewpf.codeplex.com/discussions/282474</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I found that by inalling Expression Blend preview for silverlight 5 solved the issue.&amp;nbsp; It ships with the dlls versions&amp;nbsp;required.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ltheONEl</author><pubDate>Wed, 22 Feb 2012 12:16:29 GMT</pubDate><guid isPermaLink="false">New Post: SL5 InteractionRequestTrigger 20120222121629P</guid></item><item><title>New Post: IRegionMemberLifetime</title><link>http://compositewpf.codeplex.com/discussions/330923</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Pedro,&lt;/p&gt;
&lt;p&gt;i'm using MEF.&lt;/p&gt;
&lt;p&gt;The Exports of my ViewModels are definied as follows:&lt;/p&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&amp;nbsp;[&lt;span style="color: #2b91af;"&gt;Export&lt;/span&gt;(&lt;span style="color: blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color: #2b91af;"&gt;IUserControl2ViewModel&lt;/span&gt;))]&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt; [&lt;span style="color: #2b91af;"&gt;PartCreationPolicy&lt;/span&gt;(&lt;span style="color: #2b91af;"&gt;CreationPolicy&lt;/span&gt;.NonShared)]
&amp;nbsp;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style="color: #2b91af;"&gt;UserControl2ViewModel&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style="color: #2b91af;"&gt;IUserControl2ViewModel&lt;/span&gt;,&amp;nbsp;&lt;span style="color: #2b91af;"&gt;INavigationAware&lt;/span&gt;,&lt;span style="color: #2b91af;"&gt;IRegionMemberLifetime&lt;/span&gt;
&amp;nbsp;{&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;bool&lt;/span&gt;&amp;nbsp;IsNavigationTarget(&lt;span style="color: #2b91af;"&gt;NavigationContext&lt;/span&gt;&amp;nbsp;navigationContext)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.Log(&lt;span style="color: #2b91af;"&gt;String&lt;/span&gt;.Format(&lt;span style="color: #a31515;"&gt;"Model2&amp;nbsp;-&amp;nbsp;IsNavigationTarget&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color: mediumseagreen;"&gt;{0}&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&amp;gt;"&lt;/span&gt;,&amp;nbsp;navigationContext.Uri),&amp;nbsp;&lt;span style="color: #2b91af;"&gt;Category&lt;/span&gt;.Info,&amp;nbsp;&lt;span style="color: #2b91af;"&gt;Priority&lt;/span&gt;.Low);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;true&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;bool&lt;/span&gt;&amp;nbsp;KeepAlive
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;get&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.Log(&lt;span style="color: #a31515;"&gt;"Model2&amp;nbsp;-&amp;nbsp;KeepAlive"&lt;/span&gt;,&lt;span style="color: #2b91af;"&gt;Category&lt;/span&gt;.Info,&amp;nbsp;&lt;span style="color: #2b91af;"&gt;Priority&lt;/span&gt;.Low);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;false&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&lt;span style="color: gray;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: gray;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style="color: gray;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt;&amp;nbsp;Interaction&amp;nbsp;logic&amp;nbsp;for&amp;nbsp;UserControl1.xaml&lt;/span&gt;
&lt;span style="color: gray;"&gt;///&lt;/span&gt;&lt;span style="color: green;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: gray;"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
[&lt;span style="color: #2b91af;"&gt;Export&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"UserControl1"&lt;/span&gt;)]
&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;partial&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style="color: #2b91af;"&gt;UserControl1&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style="color: #2b91af;"&gt;UserControl&lt;/span&gt;
{&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;.......&lt;/pre&gt;
&lt;pre style="font-family: Consolas; background: white; color: black; font-size: 13px;"&gt;}&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;p&gt;The Constructor UserControlXY and UserControlXYViewmodel are called only once when i'm navigation to the View/Model the first time,&lt;/p&gt;
&lt;p&gt;for all usages of the Views/ViewModels there is no more Constructor call.&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</description><author>PeterForstmeier</author><pubDate>Wed, 22 Feb 2012 10:18:26 GMT</pubDate><guid isPermaLink="false">New Post: IRegionMemberLifetime 20120222101826A</guid></item><item><title>Updated Wiki: Home</title><link>http://compositewpf.codeplex.com/wikipage?version=138</link><description>
&lt;h1&gt;Welcome to the Prism Community&lt;/h1&gt;
&lt;p&gt;&lt;img src="http://download.codeplex.com/download?ProjectName=CompositeWPF&amp;DownloadId=166628" alt="" width="488" height="366" style="margin-left:3px; margin-right:3px; margin-top:0px; margin-bottom:0px"&gt;&lt;/p&gt;
&lt;h3&gt;Overview&lt;/h3&gt;
&lt;p&gt;Prism provides guidance designed to help you more easily design and build rich, flexible, and easy-to-maintain Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 applications. Using
 design patterns that embody important architectural design principles, such as separation of concerns and loose coupling, Prism helps you to design and build applications using loosely coupled components that can evolve independently but that can be easily
 and seamlessly integrated into the overall application. These types of applications are known as composite applications.&lt;/p&gt;
&lt;p&gt;Prism includes reference implementations, QuickStarts, reusable library code (the Prism Library), and extensive documentation. This version of Prism targets the Microsoft .NET Framework 4.0 and Silverlight 4 and includes new guidance around the Model-View-ViewModel
 (MVVM) pattern, navigation, and the Managed Extensibility Framework (MEF). Because Prism is built on the .NET Framework 4.0 (which includes WPF) and Silverlight 4, familiarity with these technologies is useful for evaluating and adopting Prism.&lt;/p&gt;
&lt;p&gt;&lt;a id="_Installing_the_Composite"&gt;&lt;/a&gt;&lt;a id="_Create_Your_Hello"&gt;&lt;/a&gt;&lt;a id="_Building_and_running"&gt;&lt;/a&gt;&lt;a id="_Building_the_Composite"&gt;&lt;/a&gt;&lt;a id="_Building_and_running_1"&gt;&lt;/a&gt;&lt;a id="NewInThisRelease"&gt;&lt;/a&gt;&lt;a id="WhenToUseThisGuidance"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Intended Audience&lt;/h3&gt;
&lt;p&gt;Prism is intended for software developers building WPF or Silverlight applications that typically feature multiple screens, rich user interaction and data visualization, and that embody significant presentation and business logic. These applications typically
 interact with a number of back-end systems and services and, using a layered architecture, may be physically deployed across multiple tiers. It is expected that the application will evolve significantly over its lifetime in response to new requirements and
 business opportunities. In short, these applications are &amp;quot;built to last&amp;quot; and &amp;quot;built for change.&amp;quot; Applications that do not demand these characteristics may not benefit from using Prism.&lt;/p&gt;
&lt;p&gt;It should be noted that while Prism is not difficult to learn, developers must be ready and willing to embrace patterns and practices that may be new to them. Management understanding and commitment is crucial, and the project deadline must accommodate an
 investment of time up front for learning these patterns and practices.&lt;/p&gt;
&lt;h3&gt;Getting Started&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=28950"&gt;Prism 4.1 Download&lt;/a&gt; for WPF 4.0, Silverlight 5, and Windows Phone 7.1
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=4922" target="_blank"&gt;Prism 4 Download&lt;/a&gt; for WPF 4.0, Silverlight 4, Windows Phone 7.0
&lt;/li&gt;&lt;li&gt;&lt;a title="Visual Basic Prism 4 Reference Implementations, QuickStarts, and Hands-on Labs " href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bd727f0f-a52d-4503-b006-a91c375b9241" target="_blank"&gt;Visual Basic Prism 4 Reference Implementations,
 QuickStarts, and Hands-on Labs&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/gg405471(PandP.40).aspx" target="_blank"&gt;Prism 4 Readme&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/gg406140.aspx" target="_blank"&gt;Developer's Guide to Microsoft Prism&lt;/a&gt; (Version 4.1 and 4.0 on MSDN)
&lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/gg430871(v=PandP.40).aspx" target="_blank"&gt;What's new in Prism 4&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://compositewpf.codeplex.com/releases/view/55580" target="_blank"&gt;Prism 4&amp;nbsp;Documentation
&lt;/a&gt;(includes a PDF format) &lt;/li&gt;&lt;li&gt;&lt;a href="http://compositewpf.codeplex.com/wikipage?title=Knowledge Base&amp;referringTitle=Home" target="_blank"&gt;Prism (all versions)&amp;nbsp;Knowledge base&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Known Issues / Fixes" target="_blank"&gt;Prism (all versions)&amp;nbsp;Known Issues&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;h3&gt;Additional Links&lt;/h3&gt;
&lt;div class="wikidoc"&gt;
&lt;ul&gt;
&lt;li&gt;Windows Phone 7 Developer Guide is under development. Download it &lt;a href="http://wp7guide.codeplex.com/"&gt;
here&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;The ManifestManagerUtility for ClickOnce deployment can be found &lt;a href="http://compositewpf.codeplex.com/releases/view/14771"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;Project Linker on Visual Studio Gallery &lt;a href="http://visualstudiogallery.msdn.microsoft.com/en-us/5e730577-d11c-4f2e-8e2b-cbb87f76c044" target="_blank"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;MVVM Training &lt;a href="http://visualstudiogallery.msdn.microsoft.com/3ab5f02f-0c54-453c-b437-8e8d57eb9942" target="_blank"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;The patterns &amp;amp; practices roadmap can be found &lt;a href="http://msdn.microsoft.com/en-us/practices/bb232643"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;h3&gt;Previous Releases&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Prism 2.1&amp;nbsp;targetting Visual Studio 2008, WPF&amp;nbsp;and Silverlight 3,&amp;nbsp;named Composite Application Guidance can be downloaded&amp;nbsp;on MSDN
&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=387c7a59-b217-4318-ad1b-cbc2ea453f40&amp;displaylang=en"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;li&gt;To learn about upgrading from previous versions of Prism, go &lt;a href="http://msdn.microsoft.com/en-us/library/ff921073(v=PandP.40).aspx" target="_blank"&gt;
here&lt;/a&gt;. &lt;/li&gt;&lt;/ul&gt;
&lt;h3&gt;Future Releases&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Prism 4.1 targetting Silverlight 5. Go &lt;a href="http://blogs.msdn.com/b/blaine/archive/2011/12/14/starting-work-on-prism-4-1.aspx"&gt;
here &lt;/a&gt;to learn about future releases. &lt;/li&gt;&lt;li&gt;Prism 4.5 targetting .NET 4.5. &lt;/li&gt;&lt;/ul&gt;
&lt;div id="_mcePaste" style="width:1px; height:1px; overflow:hidden; top:1035px; left:-10000px"&gt;
&amp;#65279;&lt;/div&gt;
</description><author>brumfb</author><pubDate>Tue, 21 Feb 2012 21:01:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120221090102P</guid></item><item><title>New Post: IRegionMemberLifetime</title><link>http://compositewpf.codeplex.com/discussions/330923</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Peter, are you using Unity or MEF? If using MEF, what PartCreationPolicy attributes are you using on your View and ViewModel? I think you need to use CreationPolicy.NonShared. Also, are you using RequestNavigate to navigate to your views or are you using RegisterViewWithRegion. If using RequestNavigate, what code do you have in IsNavigationTarget?&lt;/p&gt;&lt;/div&gt;</description><author>Pedro_C</author><pubDate>Tue, 21 Feb 2012 16:12:32 GMT</pubDate><guid isPermaLink="false">New Post: IRegionMemberLifetime 20120221041232P</guid></item><item><title>New Post: How to stop Navigate when error raised?</title><link>http://compositewpf.codeplex.com/discussions/336511</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I want to Check authorization before load the view. if no authorization, the view will not show.&lt;/p&gt;
&lt;p&gt;I use below code, it just show error message, but not to stop show the view&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NavbarViewModel: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="background-color:white"&gt;  &lt;/span&gt;&lt;span style="color:blue"&gt;private&lt;/span&gt;&lt;span style="background-color:white"&gt; &lt;/span&gt;&lt;span style="color:blue"&gt;void&lt;/span&gt;&lt;span style="background-color:white"&gt; NavItemDoubleClick(&lt;/span&gt;&lt;span style="color:blue"&gt;object&lt;/span&gt;&lt;span style="background-color:white"&gt; navItem)&lt;/span&gt;&lt;/pre&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (navItem == &lt;span style="color:blue"&gt;null&lt;/span&gt;) &lt;span style="color:blue"&gt;return&lt;/span&gt;;
            NavMainMenuInfo item = navItem &lt;span style="color:blue"&gt;as&lt;/span&gt; NavMainMenuInfo;
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;string&lt;/span&gt;.IsNullOrEmpty(item.ViewName))
                &lt;span style="color:blue"&gt;return&lt;/span&gt;;
           
            &lt;span style="color:blue"&gt;this&lt;/span&gt;.regionManager.RequestNavigate(RegionNames.DocumentRegion, &lt;span style="color:blue"&gt;new&lt;/span&gt; Uri(item.ViewName, UriKind.Relative),&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;NavigationCompleted&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;);
                    
        }
         
    
        &lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; NavigationCompleted(NavigationResult result)
        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (result.Error != &lt;span style="color:blue"&gt;null&lt;/span&gt;)
                MessageBox.Show(Error.Message);
            
            IsBusy = &lt;span style="color:blue"&gt;false&lt;/span&gt;;
            
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;UnitViewModel:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;    &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; OnNavigatedTo(NavigationContext navigationContext)
        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt;(!(Csla.Rules.BusinessRules.HasPermission(Csla.Rules.AuthorizationActions.GetObject, &lt;span style="color:blue"&gt;typeof&lt;/span&gt;(Unit))))
                &lt;span style="color:blue"&gt;throw&lt;/span&gt; &lt;span style="color:blue"&gt;new&lt;/span&gt; Exception(&lt;span style="color:#a31515"&gt;&amp;quot;...&amp;quot;&lt;/span&gt;);

            &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;this&lt;/span&gt;.Model == &lt;span style="color:blue"&gt;null&lt;/span&gt;)
            {
                IsBusy = &lt;span style="color:blue"&gt;true&lt;/span&gt;;
                BeginRefresh(callback =&amp;gt; UnitList.GetAll(callback));
            }
        }
&lt;/pre&gt;
&lt;/div&gt;
i
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>Cuiqs</author><pubDate>Tue, 21 Feb 2012 14:29:12 GMT</pubDate><guid isPermaLink="false">New Post: How to stop Navigate when error raised? 20120221022912P</guid></item><item><title>New Post: How to stop Navigate when error raised?</title><link>http://compositewpf.codeplex.com/discussions/336511</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I want to Check authorization before load the view. if no authorization, the view will not show.&lt;/p&gt;
&lt;p&gt;I use below code, it just show error message, but not to stop show the view&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NavbarViewModel: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="background-color:white"&gt;  &lt;/span&gt;&lt;span style="color:blue"&gt;private&lt;/span&gt;&lt;span style="background-color:white"&gt; &lt;/span&gt;&lt;span style="color:blue"&gt;void&lt;/span&gt;&lt;span style="background-color:white"&gt; NavItemDoubleClick(&lt;/span&gt;&lt;span style="color:blue"&gt;object&lt;/span&gt;&lt;span style="background-color:white"&gt; navItem)&lt;/span&gt;&lt;/pre&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (navItem == &lt;span style="color:blue"&gt;null&lt;/span&gt;) &lt;span style="color:blue"&gt;return&lt;/span&gt;;
            NavMainMenuInfo item = navItem &lt;span style="color:blue"&gt;as&lt;/span&gt; NavMainMenuInfo;
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;string&lt;/span&gt;.IsNullOrEmpty(item.ViewName))
                &lt;span style="color:blue"&gt;return&lt;/span&gt;;
           
            &lt;span style="color:blue"&gt;this&lt;/span&gt;.regionManager.RequestNavigate(RegionNames.DocumentRegion, &lt;span style="color:blue"&gt;new&lt;/span&gt; Uri(item.ViewName, UriKind.Relative),&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;NavigationCompleted&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;);
                    
        }
         
    
        &lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; NavigationCompleted(NavigationResult result)
        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt; (result.Error != &lt;span style="color:blue"&gt;null&lt;/span&gt;)
                MessageBox.Show(Error.Message);
            
            IsBusy = &lt;span style="color:blue"&gt;false&lt;/span&gt;;
            
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;UnitViewModel:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;    &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; OnNavigatedTo(NavigationContext navigationContext)
        {
            &lt;span style="color:blue"&gt;if&lt;/span&gt;(!(Csla.Rules.BusinessRules.HasPermission(Csla.Rules.AuthorizationActions.GetObject, &lt;span style="color:blue"&gt;typeof&lt;/span&gt;(Unit))))
                &lt;span style="color:blue"&gt;throw&lt;/span&gt; &lt;span style="color:blue"&gt;new&lt;/span&gt; Exception(&lt;span style="color:#a31515"&gt;&amp;quot;...&amp;quot;&lt;/span&gt;);

            &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;this&lt;/span&gt;.Model == &lt;span style="color:blue"&gt;null&lt;/span&gt;)
            {
                IsBusy = &lt;span style="color:blue"&gt;true&lt;/span&gt;;
                BeginRefresh(callback =&amp;gt; UnitList.GetAll(callback));
            }
        }
&lt;/pre&gt;
&lt;/div&gt;
i
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>Cuiqs</author><pubDate>Tue, 21 Feb 2012 14:29:12 GMT</pubDate><guid isPermaLink="false">New Post: How to stop Navigate when error raised? 20120221022912P</guid></item><item><title>New Post: Prism/WPF/Navigation issue</title><link>http://compositewpf.codeplex.com/discussions/334335</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I'm having touble firing up IConfirmNavigation Request.&amp;nbsp; ViewModel&amp;nbsp; implements
&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;IConfirmNavigationRequest F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;ollowing
 methods are implemented to satisfy above interface.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;ConfirmNavigationRequest,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;IsNavigationTarget,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;OnNavigatedFrom&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;OnNavigatedTo&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;I'm
 using WPF/MEF container. Also I'm using TabControl(as in stocktrader RI)&amp;nbsp;which when clicked on one of the menu item will hydrate a view. I want Navigation event to fire so that I can have save logic there. Any help appreciated. I went some similar post
 , but not working.Any help appreciated.&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>ramanujam1970</author><pubDate>Tue, 21 Feb 2012 05:04:33 GMT</pubDate><guid isPermaLink="false">New Post: Prism/WPF/Navigation issue 20120221050433A</guid></item><item><title>New Post: Prism/WPF/Navigation issue</title><link>http://compositewpf.codeplex.com/discussions/334335</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I'm having touble firing up IConfirmNavigation Request.&amp;nbsp; ViewModel&amp;nbsp; implements
&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;IConfirmNavigationRequest F&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;ollowing
 methods are implemented to satisfy above interface.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;ConfirmNavigationRequest,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;IsNavigationTarget,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;OnNavigatedFrom&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/p&gt;
&lt;p&gt;OnNavigatedTo&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;I'm
 using WPF/MEF container. Also I'm using TabControl(as in stocktrader RI)&amp;nbsp;which when clicked on one of the menu item will hydrate a view. I want Navigation event to fire so that I can have save logic there. Any help appreciated. I went some similar post
 , but not working.Any help appreciated.&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>ramanujam1970</author><pubDate>Tue, 21 Feb 2012 05:04:33 GMT</pubDate><guid isPermaLink="false">New Post: Prism/WPF/Navigation issue 20120221050433A</guid></item><item><title>New Post: ViewModelLocator</title><link>http://compositewpf.codeplex.com/discussions/334032</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Being new to WPF and Prism I wanted to get some advice on the best way to implement ModelViewLocator in order to get blendability. Currently I am converting a WinForms application to WPF using Prism and have the basic skeleton of the application completed.
 My application has four regions, treeViewRegion (for selecting a view), mainRegion (where the view gets injected), a menuBarRegion, and a ToolBarRegion. Each mainView inserts itself into the&amp;nbsp;list in the treeviewRegion and also inserts it&amp;rsquo;s own menuView
 and toolBarView into the appropriate regions. I started to learn Blend so I wanted to know if there is a way to see all regions in design mode. I was reading about MEFedMVVM, MVVMLight, ViewModelSupport by Brian Fenisio, and a number of blendability articles
 by Tomer Shamam. I want to know what the best path to implement this is and if I will be able to see all regions during design time.&lt;/p&gt;
&lt;/div&gt;</description><author>jfraschilla</author><pubDate>Tue, 21 Feb 2012 03:45:13 GMT</pubDate><guid isPermaLink="false">New Post: ViewModelLocator 20120221034513A</guid></item></channel></rss>
