<?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 : Screen composition in cocktail</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Screen composition in cocktail</description>
  <pubDate>Thu, 30 Apr 2026 09:15:19 -700</pubDate>
  <lastBuildDate>Wed, 02 May 2012 14:45:53 -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=3420</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>Screen composition in cocktail :   The third way is how it&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3420&amp;PID=13476#13476</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> 3420<br /><strong>Posted:</strong> 02-May-2012 at 2:45pm<br /><br />The third way is how it's done in StaffingResourceContactInfoViewModel. It uses Conductor&lt;T&gt;.Collection.AllActive. You'll still have to activate each VM once, but from that point on the conductor manages deactivation and potential reactivation automatically. You can then either bind to the Items collection&nbsp;and&nbsp;layout the 16 views in an ItemsControl, TabControl etc. or if you need to access them individually than you add properties on top of the Items collection that pulls out know VMs. <div>&nbsp;</div><div>To reduce the constructor&nbsp;those 16 VMs&nbsp;can implement an interface by which they are exported and do an ImportMany. You can see that done in StaffingResourceDetailViewModel. It imports IEnumerable&lt;IStaffingResourceDetailSection&gt; and each one automatically becomes a tab. I can add new tabs without having to touch the DetailViewModel at all. Just add another VM that implements IStaffingResourceDetailSection.</div>]]>
   </description>
   <pubDate>Wed, 02 May 2012 14:45:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3420&amp;PID=13476#13476</guid>
  </item> 
  <item>
   <title>Screen composition in cocktail : Ok so I need a little help in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3420&amp;PID=13474#13474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3420<br /><strong>Posted:</strong> 02-May-2012 at 12:32pm<br /><br />Ok so I need a little help in the screen composition area of cocktail. For our massive data entry screen we have about 16 separate sections that are their own view. What we currently do now is create a conductor for each of the views and bind a content control to the active item of the conductor. I understand that this might not be the correct way to do things but it worked.&nbsp;<div><br></div><div>It appears that in the temphire app you have an individual property for the viewmodel and bind to that. That works as well but you also have to manage the activating and deactivating of each view. Also that would be a huge constructor to bring in 16 vms. If I was looking to clean up this screen should I follow your approach or is there perhaps a third way that would handle our scenario?</div>]]>
   </description>
   <pubDate>Wed, 02 May 2012 12:32:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3420&amp;PID=13474#13474</guid>
  </item> 
 </channel>
</rss>