<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Create View on demand</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Create View on demand</description>
  <pubDate>Fri, 10 Apr 2026 23:07:37 -700</pubDate>
  <lastBuildDate>Wed, 09 May 2012 14:57:54 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3435</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Create View on demand : Take a look at the very latest...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3435&amp;PID=13554#13554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3435<br /><strong>Posted:</strong> 09-May-2012 at 2:57pm<br /><br />Take a look at the very latest TempHire that ships with Cocktail v0.6. I've refactored the Shell to support lazy instantiation of workspaces. The Resource Management workspace is now created the first time you click on the button in the toolbar. The Resource Manager workspace is defined as a LazyWorkspace like so:<DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">class</SPAN> StaffingResourceWorkspace : LazyWorkspace&lt;StaffingResourceManagementViewModel&gt;<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> StaffingResourceWorkspace()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <SPAN style="COLOR: blue">base</SPAN>(<SPAN style="COLOR: #a31515">"Resource Management"</SPAN>, <SPAN style="COLOR: blue">false</SPAN>, 10)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR><BR>IWorkspace now has a Content property that returns the actual workspace content, which in case of LazyWorkspace gets lazy instantiated upon first access.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; &#091;InterfaceExport(<SPAN style="COLOR: blue">typeof</SPAN>(IWorkspace))&#093;<BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">interface</SPAN> IWorkspace : IHaveDisplayName<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">bool</SPAN> IsDefault { <SPAN style="COLOR: blue">get</SPAN>; }<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">int</SPAN> Sequence { <SPAN style="COLOR: blue">get</SPAN>; }<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IScreen Content { <SPAN style="COLOR: blue">get</SPAN>; }<BR>&nbsp;&nbsp;&nbsp; }<BR></DIV><DIV>LazyWorkspace just holds metadata about the workspace itself.</DIV><DIV>&nbsp;</DIV><DIV>In the Shell, the NavigationService is then configured with a custom activator, which activates the content instead of the workspace itself.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _navigationService = <SPAN style="COLOR: blue">new</SPAN> NavigationService&lt;IWorkspace&gt;(<SPAN style="COLOR: blue">this</SPAN>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Configure(config =&gt; config.WithActivator(navigation =&gt; ActivateItem(navigation.Target.Content)));<BR></DIV>]]>
   </description>
   <pubDate>Wed, 09 May 2012 14:57:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3435&amp;PID=13554#13554</guid>
  </item> 
  <item>
   <title>Create View on demand :   Hi.I&#194;&#180;m creating an app using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3435&amp;PID=13553#13553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3435<br /><strong>Posted:</strong> 09-May-2012 at 1:41pm<br /><br />Hi.<div>I´m creating an app using the TempHire demo as base.</div><div>In TempHire on the ShellViewModel the workspaces are collected and CREATED througout the MEF IOC. how you do build the same idea but not CREATING the WorkSpaces on app Start, but when the Toolbar to the View is pressed?</div><div>&nbsp;</div><div>thanks in advanced.</div><div>Ramiro Bautista</div>]]>
   </description>
   <pubDate>Wed, 09 May 2012 13:41:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3435&amp;PID=13553#13553</guid>
  </item> 
 </channel>
</rss>