<?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: Composite WPF</title><link>http://www.codeplex.com/CompositeWPF/Project/ProjectRss.aspx</link><description>The Composite Application Guidance for WPF is designed to help you more easily build enterprise-level Windows Presentation Foundation &amp;#40;WPF&amp;#41; client applications. This guidance will help you design a...</description><item><title>New Post: Container Hierarchy</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31457</link><description>&lt;div style="line-height: normal;"&gt;Hi&amp;nbsp;Tschaena &amp;amp;&amp;nbsp;WMeints,&lt;br&gt;
&lt;br&gt;
You can implement the equivalent the equivalent of the WorkItemController in your Composite WPF App.&amp;nbsp; Simply implement a plain old C# class and add in to your container.&amp;nbsp; If using the Unity Container and you want only one instance within the container, just register your type with a ContainerControlledLifetimeManager.&amp;nbsp; See the OrdersController in the StockTraderRI.Modules.Position project for an example.&amp;nbsp; You can accomplish all the equivalent functionality as provided by the WorkItemController in this manner.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Registering your controller...&lt;br&gt;
&lt;br&gt;
&lt;p&gt;_container.RegisterType&amp;lt;&lt;span style="color:#2b91af"&gt;IOrdersController&lt;/span&gt;, &lt;span style="color:#2b91af"&gt;OrdersController&lt;/span&gt;&amp;gt;(&lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af"&gt;ContainerControlledLifetimeManager&lt;/span&gt;());&lt;br&gt;
&lt;br&gt;
Injecting dependecies needed by your controller...&lt;br&gt;
&lt;span style="color:#0000ff"&gt;&lt;br&gt;
public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af"&gt;OrdersController&lt;/span&gt; : &lt;span style="color:#2b91af"&gt;IOrdersController&lt;br&gt;
&lt;/span&gt;{ ...&lt;br&gt;
&lt;span style="color:#0000ff"&gt;public&lt;/span&gt; OrdersController(&lt;span style="color:#2b91af"&gt;IRegionManager&lt;/span&gt; regionManager, &lt;span style="color:#2b91af"&gt;IUnityContainer&lt;/span&gt; container, &lt;br&gt;
&lt;span style="color:#2b91af"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StockTraderRICommandProxy&lt;/span&gt; commandProxy, &lt;span style="color:#2b91af"&gt;IAccountPositionService&lt;/span&gt; accountPositionService)&lt;/p&gt;
&lt;p&gt;{ ...} &lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Using the controller...&lt;br&gt;
&lt;br&gt;
&lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af"&gt;PositionSummaryPresentationModel&lt;/span&gt; : &lt;span style="color:#2b91af"&gt;IPositionSummaryPresentationModel&lt;/span&gt;, &lt;span style="color:#2b91af"&gt;INotifyPropertyChanged &lt;br&gt;
&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&lt;span style="color:#000000"&gt;{ &lt;/span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff"&gt;public&lt;/span&gt; PositionSummaryPresentationModel(&lt;span style="color:#2b91af"&gt;...&lt;/span&gt;, &lt;span style="color:#2b91af"&gt;IOrdersController&lt;/span&gt; ordersController...) { ...} &lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Hope this helps.&amp;nbsp; Jim&lt;/p&gt;
&lt;/div&gt;</description><author>jwalklin</author><pubDate>Wed, 23 Jul 2008 15:39:53 GMT</pubDate><guid isPermaLink="false">New Post: Container Hierarchy 20080723033953P</guid></item><item><title>New Post: Container Hierarchy</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31457</link><description>&lt;div style="line-height: normal;"&gt;I'm considering to implement a module base class an workitem base class for CompositeWPFContrib, I will keep you posted on the progress.&lt;br&gt;
&lt;/div&gt;</description><author>WMeints</author><pubDate>Wed, 23 Jul 2008 14:10:27 GMT</pubDate><guid isPermaLink="false">New Post: Container Hierarchy 20080723021027P</guid></item><item><title>New Post: EventPublication and EventSubscription </title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=32047</link><description>&lt;div style="line-height: normal;"&gt;Hello, &lt;br&gt;
&lt;br&gt;
1) I think that a way of using event publication and event subscription mechanism has been changed in Prism. May I know why? If it's still the same, Could you please give me an example how to use SCSF style &amp;quot;event subscription and event publication&amp;quot; in Prism? &lt;br&gt;
&lt;br&gt;
2)&amp;nbsp; The following is the way that we used to use in SCSF. How can I get the same in Prism? &lt;br&gt;
&lt;br&gt;
&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;
&lt;pre&gt;[EventSubscription(EventTopicNames.CustomerSelected, ThreadOption.UserInterface)]&lt;br&gt;public void WorkWithCustomer(object sender, EventArgs&amp;lt;Customer&amp;gt; e)&lt;br&gt;{&lt;/pre&gt;
&lt;/span&gt;&amp;nbsp;}&lt;br&gt;
&lt;br&gt;
&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;
&lt;pre&gt;[EventPublication(EventTopicNames.CustomerSelected, PublicationScope.Global)]&lt;br&gt;public event EventHandler&amp;lt;EventArgs&amp;gt; CustomerSelected;&lt;/pre&gt;
&lt;/span&gt;&lt;span id="ctl00_ctl00_Content_TabContentPanel_Content_wikiSourceLabel"&gt;
&lt;pre&gt;public void WorkWithCustomer(Customer customer)&lt;br&gt;{&lt;br&gt;        if (CustomerSelected != null)&lt;br&gt;            CustomerSelected(this, new EventArgs&amp;lt;Customer&amp;gt;(customer));&lt;br&gt;}&lt;br&gt;&lt;br&gt;3) Why do I need to create my own event class and my own eventargs class in order to use the event pub/sup in Prism? We tried to create one generic event class &amp;quot;SimpleAction&amp;quot; and generic eventargs &amp;quot;SimplePayLoad&amp;quot; in our project. The problem is that we can't specify the id of event. How can I specify the id of event? &lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance.&lt;/pre&gt;
&lt;/span&gt;
&lt;/div&gt;</description><author>michaelsync</author><pubDate>Wed, 23 Jul 2008 03:14:37 GMT</pubDate><guid isPermaLink="false">New Post: EventPublication and EventSubscription  20080723031437A</guid></item><item><title>New Post: Container Hierarchy</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31457</link><description>&lt;div style="line-height: normal;"&gt;Hi WMeints,&lt;br&gt;
&lt;br&gt;
Sure, Unity does support a container hierarchy. But since Composite WPF does not seem to support multiple containers with special classes, I'm forced to write my own kind of &amp;quot;WorkItemController&amp;quot; for Unity (Let's call it UnityContainerController ;-)). Anyway, this problem seems solvable...&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>tschaena</author><pubDate>Tue, 22 Jul 2008 19:40:36 GMT</pubDate><guid isPermaLink="false">New Post: Container Hierarchy 20080722074036P</guid></item><item><title>New Post: Multiple views of the same data</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=32012</link><description>&lt;div style="line-height: normal;"&gt;I have created the following items all contained in module Customer:&lt;br&gt;
&lt;br&gt;
CustomerModel&lt;br&gt;
&lt;br&gt;
ICustomerListPresenter/CustomerListPresenter&amp;nbsp;&amp;nbsp; &lt;br&gt;
ICustomerListView/CustomerListView&amp;nbsp;(Defined as a listbox)&lt;br&gt;
&lt;br&gt;
ICustomerDetailPresenter/CustomerDetailPresenter&lt;br&gt;
ICustomerDetailView/CustomerDetailView&lt;br&gt;
&lt;br&gt;
ICustomerCompositePresenter/CustomerCompositePresenter&lt;br&gt;
ICustomerCompositeView/CustomerCompositeView&lt;br&gt;
&lt;br&gt;
These are self contained in there own module with no external references.&amp;nbsp; When I load this in my main application everything is fine my composite view can come up with a customer list I double click on a fish and it brings up the details.&lt;br&gt;
&lt;br&gt;
Now I want to add a Orders module.&amp;nbsp; Assuming the orders module is set up exactly like the above but has a static reference to the Customer module.&amp;nbsp; When I edit an order in details view, I want to have a combobox from which I can select my customer.&amp;nbsp; Do I need to make a new CustomerComboListView to fill in here or is there a way to use CustomerListView?&lt;br&gt;
&lt;br&gt;
Feel free to tell me I am going in a completely wrong direction on this, but also please tell me a better one if you feel this is the case.&amp;nbsp; I didn't know if this was more of a wpf thing or a composite WPF thing.&lt;br&gt;
&lt;/div&gt;</description><author>CodeHulk</author><pubDate>Tue, 22 Jul 2008 19:40:25 GMT</pubDate><guid isPermaLink="false">New Post: Multiple views of the same data 20080722074025P</guid></item><item><title>New Post: Event publication/subscription and INotifyPropertyChanged</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31991</link><description>&lt;div style="line-height: normal;"&gt;Bull's eye. Thanks jwalklin. Changing List to ObservableCollection fixed the problem. I still have to go back and check several other places where I was using List&amp;lt;T&amp;gt; for similar situations and compare but for now that's all I needed.&lt;br&gt;
&lt;/div&gt;</description><author>zi</author><pubDate>Tue, 22 Jul 2008 18:30:20 GMT</pubDate><guid isPermaLink="false">New Post: Event publication/subscription and INotifyPropertyChanged 20080722063020P</guid></item><item><title>New Post: Event publication/subscription and INotifyPropertyChanged</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31991</link><description>&lt;div style="line-height: normal;"&gt;One quick suggestion - Try replacing List&amp;lt;Student&amp;gt; with System.Collections.ObjectModel.ObservableCollection&amp;lt;Student&amp;gt;.&amp;nbsp; You should bind your&amp;nbsp;ListBox&amp;nbsp;to a collection of this type in WPF, when the collection is changing.&lt;br&gt;
&lt;br&gt;
If this doesn't work, post your code and we'll see what's going on.
&lt;/div&gt;</description><author>jwalklin</author><pubDate>Tue, 22 Jul 2008 18:05:49 GMT</pubDate><guid isPermaLink="false">New Post: Event publication/subscription and INotifyPropertyChanged 20080722060549P</guid></item><item><title>Created Issue: Can you provide Visio document (reverse engineered) with documentation?</title><link>http://www.codeplex.com/prism/WorkItem/View.aspx?WorkItemId=2766</link><description>I see that VSTS Rosario November 2007 CTP has reverse engineering capabilities for Visio, ref&amp;#58; http&amp;#58;&amp;#47;&amp;#47;forums.microsoft.com&amp;#47;MSDN&amp;#47;ShowPost.aspx&amp;#63;PostID&amp;#61;2488400&amp;#38;SiteID&amp;#61;1.   Since you guys have the resources &amp;#58;&amp;#41;  A few minutes on the CompositeWPF teams part to reverse engineer the existing code into a Visio document could save us hours &amp;#40;if not days&amp;#41;.    Not looking for any diagrams - just the objects so that I can create them....&lt;br /&gt;</description><author>BillKrat</author><pubDate>Tue, 22 Jul 2008 15:32:32 GMT</pubDate><guid isPermaLink="false">Created Issue: Can you provide Visio document (reverse engineered) with documentation? 20080722033232P</guid></item><item><title>New Post: Event publication/subscription and INotifyPropertyChanged</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31991</link><description>&lt;div style="line-height: normal;"&gt;I have following scenario.&lt;br&gt;
1) StudentView has a listbox to display student names. DataContext of the view is bound to StudentModel within same module. StudentModel has a property StudentList&amp;nbsp;returning List&amp;lt;Student&amp;gt;. &lt;br&gt;
2) The property StudentList in turn gets its records from StudentDataService. StudentDataService publishes ListChanged event to notify changes.&lt;br&gt;
3) StudentModel is a subscriber to ListChanged event. StudentModel also implements INotifyPropertyChanged interface to notify bound controls.&lt;br&gt;
&lt;br&gt;
Stepping through the code, event publication/subscription works perfect. While in debugger, I can even see the conents of StudentList property being&amp;nbsp;refreshed but the contents of ListBox on StudentView (.xaml) do not change. My implementation of INotifyPropertyChanged is fine since I have used it at other places successfully. &lt;br&gt;
&lt;br&gt;
Any clues, what I am missing here.
&lt;/div&gt;</description><author>zi</author><pubDate>Tue, 22 Jul 2008 15:24:11 GMT</pubDate><guid isPermaLink="false">New Post: Event publication/subscription and INotifyPropertyChanged 20080722032411P</guid></item><item><title>Updated Wiki: New posts</title><link>http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=New posts&amp;version=16</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
New posts
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/22/use-the-outlookbar-in-your-compositewpf-prism-applications/" class="externalLink"&gt;Use the OutlookBar in your CompositeWPF (Prism) Applications&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Regions&amp;amp;referringTitle=New%20posts"&gt;Regions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/francischeung/archive/2008/07/16/activeaware-views-and-commands.aspx" class="externalLink"&gt;ActiveAware Views and Commands&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Commands&amp;amp;referringTitle=New%20posts"&gt;Commands&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/07/15/composite-application-guidance-for-wpf-prism-tour-part-1.aspx" class="externalLink"&gt;Composite Application Guidance for WPF (Prism) Tour - Part 1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=GettingStarted&amp;amp;referringTitle=New%20posts"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/somasegar/archive/2008/07/15/composite-application-guidance-for-wpf.aspx" class="externalLink"&gt;Composite Application Guidance for WPF&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=GettingStarted&amp;amp;referringTitle=New%20posts"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://blogs.msdn.com/mszcool/archive/2008/07/11/migrate-from-cab-scsf-to-composite-wpf-guidance-prism.aspx" class="externalLink"&gt;Migrate from CAB/SCSF to Composite WPF Guidance / Prism!?&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Migration%20from%20CAB&amp;amp;referringTitle=New%20posts"&gt;Migration from CAB&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/erwinvandervalk/archive/2008/06/27/how-to-load-cal-modules-from-a-website-or-other-locations.aspx" class="externalLink"&gt;How to load CAL modules from a website (or other locations)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Modularity&amp;amp;referringTitle=New%20posts"&gt;Modularity&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/03/composite-application-guidance-for-wpf-visual-studio-templates/" class="externalLink"&gt;Composite Application Guidance for WPF Visual Studio Templates&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Others&amp;amp;referringTitle=New%20posts"&gt;Others&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.southworks.net/mszklanny/2008/07/09/composite-guidance-for-wpf-documentation-and-hands-on-lab/" class="externalLink"&gt;Composite Guidance for WPF Documentation and Hands On Lab&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Others&amp;amp;referringTitle=New%20posts"&gt;Others&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/gblock/archive/2008/06/04/loosely-coupled-communication-prism-style.aspx" class="externalLink"&gt;Loosely coupled communication - Prism style&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Loosely%20Coupled%20Communication&amp;amp;referringTitle=New%20posts"&gt;Loosely Coupled Communication&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=28536" class="externalLink"&gt;Access the shell from modules&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Modularity&amp;amp;referringTitle=New%20posts"&gt;Modularity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>mconverti</author><pubDate>Tue, 22 Jul 2008 14:07:41 GMT</pubDate><guid isPermaLink="false">Updated Wiki: New posts 20080722020741P</guid></item><item><title>Updated Wiki: Regions</title><link>http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Regions&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Regions
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/22/use-the-outlookbar-in-your-compositewpf-prism-applications/" class="externalLink"&gt;Use the OutlookBar in your CompositeWPF (Prism) Applications&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Version&lt;/b&gt;: All&lt;/li&gt;&lt;li&gt;&lt;b&gt;Description&lt;/b&gt;: Article about the OutlookBar for Composite WPF applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>mconverti</author><pubDate>Tue, 22 Jul 2008 14:07:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Regions 20080722020712P</guid></item><item><title>Updated Wiki: Knowledge Base</title><link>http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Knowledge Base&amp;version=20</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
Composite Application Guidance for WPF Knowledge Base
&lt;/h1&gt; &lt;br /&gt;The purpose of this Knowledge Base is categorize and organize blogs posts, CodePlex pages, CodePlex posts, etc that can be valuable for the community. With this kind of information organized the community will have a new place to search for help/guidance.&lt;br /&gt; &lt;br /&gt;We are going to update this KB periodically. You will find highlighted in this page the new posts we are adding.&lt;br /&gt; &lt;br /&gt;Below this you will find the categories in which we propose to organize the information. If you feel that some categories are missing, please leave us a comment with the proposed category.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Categories:
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=GettingStarted&amp;amp;referringTitle=Knowledge%20Base"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&lt;li&gt;‌&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Composite%20Application%20Guidance%20for%20WPF&amp;amp;referringTitle=Knowledge%20Base"&gt;Composite Application Guidance for WPF&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Regions&amp;amp;referringTitle=Knowledge%20Base"&gt;Regions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Modularity&amp;amp;referringTitle=Knowledge%20Base"&gt;Modularity&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=UI%20Composition&amp;amp;referringTitle=Knowledge%20Base"&gt;UI Composition&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Commands&amp;amp;referringTitle=Knowledge%20Base"&gt;Commands&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Loosely%20Coupled%20Communication&amp;amp;referringTitle=Knowledge%20Base"&gt;Loosely Coupled Communication&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Model%20View%20ViewModel%20%28MVVM%29&amp;amp;referringTitle=Knowledge%20Base"&gt;Model View ViewModel (MVVM)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Migration%20from%20CAB&amp;amp;referringTitle=Knowledge%20Base"&gt;Migration from CAB&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Known%20Issues%20%2f%20Fixes&amp;amp;referringTitle=Knowledge%20Base"&gt;Known Issues / Fixes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Others&amp;amp;referringTitle=Knowledge%20Base"&gt;Others&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;
New posts:
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/22/use-the-outlookbar-in-your-compositewpf-prism-applications/" class="externalLink"&gt;Use the OutlookBar in your CompositeWPF (Prism) Applications&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Regions&amp;amp;referringTitle=Knowledge%20Base"&gt;Regions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/francischeung/archive/2008/07/16/activeaware-views-and-commands.aspx" class="externalLink"&gt;ActiveAware Views and Commands&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Commands&amp;amp;referringTitle=Knowledge%20Base"&gt;Commands&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/07/15/composite-application-guidance-for-wpf-prism-tour-part-1.aspx" class="externalLink"&gt;Composite Application Guidance for WPF (Prism) Tour - Part 1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=GettingStarted&amp;amp;referringTitle=Knowledge%20Base"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.msdn.com/somasegar/archive/2008/07/15/composite-application-guidance-for-wpf.aspx" class="externalLink"&gt;Composite Application Guidance for WPF&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=GettingStarted&amp;amp;referringTitle=Knowledge%20Base"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://blogs.msdn.com/mszcool/archive/2008/07/11/migrate-from-cab-scsf-to-composite-wpf-guidance-prism.aspx" class="externalLink"&gt;Migrate from CAB/SCSF to Composite WPF Guidance / Prism!?&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on &lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=Migration%20from%20CAB&amp;amp;referringTitle=Knowledge%20Base"&gt;Migration from CAB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;i&gt;&lt;a href="http://www.codeplex.com/CompositeWPF/Wiki/View.aspx?title=New%20posts&amp;amp;referringTitle=Knowledge%20Base"&gt;More...&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>mconverti</author><pubDate>Tue, 22 Jul 2008 14:06:23 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Knowledge Base 20080722020623P</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;YES! thanks so much for that. It did the trick. It still doesn't explain though, why it doesn't work with the default&amp;nbsp;ItemsControl.ItemsPanel.
&lt;/div&gt;</description><author>JasonTeale</author><pubDate>Tue, 22 Jul 2008 01:25:34 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080722012534A</guid></item><item><title>New Post: Outlook style regions</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31645</link><description>&lt;div style="line-height: normal;"&gt;Hi guys, I've just blogged about how to use the OutlookBar in CompositeWPF applications.&lt;br&gt;
Hope you find the post useful.&amp;nbsp;&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/22/use-the-outlookbar-in-your-compositewpf-prism-applications/" rel=bookmark&gt;Use the OutlookBar in your CompositeWPF (Prism) Applications &lt;/a&gt;&lt;a href="http://blogs.southworks.net/ejadib/2008/07/22/use-the-outlookbar-in-your-compositewpf-prism-applications/" rel=bookmark&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Feeback is welcome.&lt;br&gt;
&lt;br&gt;
Ezequiel Jadib&lt;br&gt;
&lt;a href="http://blogs.southworks.net/ejadib"&gt;http://blogs.southworks.net/ejadib&lt;/a&gt;
&lt;/div&gt;</description><author>ejadib</author><pubDate>Tue, 22 Jul 2008 00:32:01 GMT</pubDate><guid isPermaLink="false">New Post: Outlook style regions 20080722123201A</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;Great news!!&amp;nbsp; Thanks for providing the steps for us (as well as the link); when it's my turn I trust it will save me a lot of time :)
&lt;/div&gt;</description><author>BillKrat</author><pubDate>Mon, 21 Jul 2008 23:30:55 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080721113055P</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Bill,&lt;/p&gt;
&lt;p&gt;I found solution to the problem by looking around at some of the other issues on this website. There was a post at&amp;nbsp;&lt;a href="http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=28522"&gt;http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=28522&lt;/a&gt;&amp;nbsp;that discussed an issue with getting the View to take up all the space available in the Shell. I figured this solution might help me out so I tried it. Everything is working like I&amp;nbsp;want now. &lt;br&gt;
&lt;br&gt;
Before, in the Shell, I had a StackPanel with the ItemsControl inside it. This was the MainRegion (This is how all the examples are for CompositeWPF).&amp;nbsp;Whenever I loaded my View into this region, it wouldn't automatically take up the available space. Also, when the ListView in the View was filled with data, it would expand beyond view. Anyway, based on the above link:&lt;br&gt;
&lt;br&gt;
1. In the Shell, I changed the StackPanel to a DockPanel and had it take up all available space.&lt;br&gt;
2. In the Shell, I changed the ItemsControl to be docked to Top of DockPanel and set the ItemsControl.ItemsPanel to have a template of DockPanel. This is what was discussed in the View.&lt;br&gt;
3. In my View that gets loaded, I got rid of all the MinHeight, MaxHeight stuff so that it would expand fully when loaded into MainRegion.&lt;br&gt;
4. After this, when the View was loaded, it correctly took up all the space in the containing DockPanel. Also, when ListView was filled with data, it honors the bounds of the container and doesn't stretch beyone view.&lt;br&gt;
&lt;br&gt;
HOORAY!!!! Not sure why this all works, but it does. &lt;br&gt;
&lt;br&gt;
- Rob&lt;/p&gt;
&lt;/div&gt;</description><author>robertwsmith</author><pubDate>Mon, 21 Jul 2008 21:55:18 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080721095518P</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;Hi Rob,&lt;br&gt;
&lt;br&gt;
Do you have the time to slap together a small prototype that will help us visualize the problem?&amp;nbsp;&amp;nbsp;&amp;nbsp;We (the community and perhaps the CompositeWPF team)&amp;nbsp;can use it to come up with a solution that will help others now, and in the future.&amp;nbsp;&amp;nbsp; I'm currently doing Bill Steeles 18 part &lt;a href="http://www.global-webnet.net/BlogEngine/post/2008/07/20/WPF-the-next-big-adventure.aspx"&gt;webcast on WPF&lt;/a&gt;; perhaps one of them will hold the answer...&amp;nbsp; &lt;br&gt;
&lt;br&gt;
EDITED:&amp;nbsp; [Rob] &lt;em&gt;6.&amp;nbsp;However, the real problem is not with the Shell changing sizes, but the Listview changes sizes and ignoring the bounds of the container. For example, I launch the program and Shell is shown and View from Module is loaded into the MainRegion. When I fill the ListView with data, the ListView expands and ignores the bounds of the MainRegion. It just expands outside the form and no Scrollbar is provided on the ListView. During all of this, the Shell size is not changing at all and therefore no event is fired here. &lt;/em&gt;&lt;br&gt;
&lt;br&gt;
If I understand your scenario correctly you should configure a height for your listbox (so that it is within the bounds of your container) and as the number of items grow the scrollbar will appear.&amp;nbsp;&amp;nbsp; Then the event subscription can be used to resize your listbox (which now has a configured height) so that it will be anchored to the container.&amp;nbsp;&amp;nbsp;&amp;nbsp;I think I have enough to address this issue - I'll see if I can't crank out a solution and blog it this evening...&amp;nbsp;
&lt;/div&gt;</description><author>BillKrat</author><pubDate>Mon, 21 Jul 2008 14:12:07 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080721021207P</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Bill,&lt;/p&gt;
&lt;p&gt;Thanks for your detailed idea. I tried to implement your suggestions, but it is still not giving the desired result. Here are some points about what I did.&lt;/p&gt;
&lt;p&gt;1. The CompositeWPF DOES include event pub/sub mechanism already, so there was no need to add in the extensions and such from Unity project.&lt;br&gt;
2. I added a new Event to my Infrastructure project to be used by the Shell and module with View that needs to be notified when Shell size changes.&lt;br&gt;
3. In the Shell, I hooked up the event for SizeChanged and published the SizeChangedEventArgs with the new event.&lt;br&gt;
4. In the Module with the View containing ListView, I subscribed to the size changed event from the Shell.&lt;br&gt;
5. I do receive the events when Shell size changes, and I can modify the ListView Height.&lt;br&gt;
6.&amp;nbsp;However, the real problem is not with the Shell changing sizes, but the Listview changes sizes and ignoring the bounds of the container. For example, I launch the program and Shell is shown and View from Module is loaded into the MainRegion. When I fill the ListView with data, the ListView expands and ignores the bounds of the MainRegion. It just expands outside the form and no Scrollbar is provided on the ListView. During all of this, the Shell size is not changing at all and therefore no event is fired here. &lt;br&gt;
7. I think you may be on to something with the event mechanism, but the Shell SizeChanged event doesn't seem to be the correct place to plug-in to fix this issue.&lt;br&gt;
8. I definitely think that something must be going on in the CompositeWPF code that is causing this. I don't have these problems if I just create a normal WPF application and add a UserControl to a Panel or something without using CompositeWPF. &lt;/p&gt;
&lt;p&gt;I sure wish someone from the CompositeWPF team would comment on this or provide some guidance...&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
&lt;/div&gt;</description><author>robertwsmith</author><pubDate>Mon, 21 Jul 2008 13:52:40 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080721015240P</guid></item><item><title>New Post: Container Hierarchy</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31457</link><description>&lt;div style="line-height: normal;"&gt;Hi tschaena,&lt;br&gt;
&lt;br&gt;
It is possible to create child container in prism, this is a default feature of Unity and allows the same scheme to be implemented as provided in CAB. &lt;br&gt;
One possible scenario would be something like this:&lt;br&gt;
&lt;br&gt;
{{&lt;br&gt;
public class MyModule: IModule&lt;br&gt;
{&lt;br&gt;
&amp;nbsp; private IUnityContainer _container;&lt;br&gt;
&lt;br&gt;
&amp;nbsp; public MyModule(IUnityContainer parentContainer)&lt;br&gt;
&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; _container = parentContainer.CreateChildContainer();&lt;br&gt;
&amp;nbsp; }&lt;br&gt;
&lt;br&gt;
&amp;nbsp; protected UnityContainer Container&lt;br&gt;
&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _container; }&lt;br&gt;
&amp;nbsp; }&lt;br&gt;
&lt;br&gt;
&amp;nbsp; public void Initialize()&lt;br&gt;
&amp;nbsp; {&lt;br&gt;
&lt;br&gt;
&amp;nbsp; }&lt;br&gt;
}&lt;br&gt;
}}&lt;br&gt;
&lt;/div&gt;</description><author>WMeints</author><pubDate>Mon, 21 Jul 2008 11:35:37 GMT</pubDate><guid isPermaLink="false">New Post: Container Hierarchy 20080721113537A</guid></item><item><title>New Post: UserControl (View) not being measured correctly when  loaded into region</title><link>http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=31598</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I have a solution but please bear in mind that it may not be the correct solution; currently I'm investing my time in learning WPF and Unity and once I have them under my belt will attack the CompositeWPF (I should then know what I'm looking at); although I did cheat and had to figure out / understand how the RegionManager worked before I could move on&amp;nbsp;&amp;nbsp;;)&lt;br&gt;
&lt;br&gt;
For anyone who wants to visualize the problem:&lt;br&gt;
&amp;nbsp;&lt;br&gt;
1. Load the &lt;strong&gt;Commanding&lt;/strong&gt; solution and change&amp;nbsp; the Commanding.Modules.Order project's PresentationModels\OrdersEditorPresentationModel.cs&amp;nbsp; &lt;em&gt;InitialOrdersCount&lt;/em&gt; constant int from 3 to 25 - when you run the app you'll find the listbox has no scrollbars and it extends below the visible grid cell area (there will be 25 items in the list versus 3).&lt;br&gt;
&lt;br&gt;
2. First we'll fix the scrollbar issue - Views\OrdersEditorView.xaml.&amp;nbsp;&amp;nbsp; Update the ListView element by adding x:Name=&amp;quot;ListView1&amp;quot; and change the Height attribute from &amp;quot;Auto&amp;quot; to &amp;quot;200&amp;quot;; the listview will have scrollbars and fit nicely in the Grid cell.&lt;br&gt;
&lt;br&gt;
3.&amp;nbsp; The solution lies in Event notification - the view is nicely decoupled from the shell so it doesn't know when the shell size changes (perhaps the CompositeWPF framework has something to notify???);&amp;nbsp; we'll let it know so that we can adjust the ListView1 height accordingly.&amp;nbsp;&amp;nbsp;Let's get two very useful&amp;nbsp;Unity Projects (Event processing may be in CompositeWPF but again, I do&amp;nbsp;not know it yet :)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.&amp;nbsp; Load the EventBrokerExtension and SimpleEventBroker projects from the latest Unity download (UnityQuickStarts\language\EventBroker\Src).&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.&amp;nbsp; Set references to each in the Commanding and Commanding.Modules.Order projects&lt;br&gt;
&lt;br&gt;
4.&amp;nbsp; In the Commanding project's CommandBootStrapper.CreateShell method add the following statement before the &lt;em&gt;Shell shell&lt;/em&gt; statement:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&lt;em&gt; Container.AddNewExtension&amp;lt;SimpleEventBrokerExtension&amp;gt;();&lt;/em&gt;&lt;/strong&gt;&amp;nbsp; // and add&amp;nbsp;using/imports as applicable&lt;br&gt;
&lt;br&gt;
5.&amp;nbsp; Update your &lt;strong&gt;Commanding&lt;/strong&gt; Shell XAML so that it will notify code behind when the size has changed:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Window x:Class=&amp;quot;Commanding.Shell&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns=&amp;quot;&lt;a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/a&gt;&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x=&amp;quot;&lt;a href="http://schemas.microsoft.com/winfx/2006/xaml"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/a&gt;&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:cal=&amp;quot;&lt;a href="http://www.codeplex.com/CompositeWPF"&gt;http://www.codeplex.com/CompositeWPF&lt;/a&gt;&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title=&amp;quot;Shell&amp;quot; Height=&amp;quot;385&amp;quot; Width=&amp;quot;500&amp;quot; MinHeight=&amp;quot;385&amp;quot;&lt;br&gt;
&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/em&gt;&lt;strong&gt;&lt;em&gt;SizeChanged=&amp;quot;Window_SizeChanged&amp;quot;&lt;br&gt;
&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;br&gt;
&lt;br&gt;
6.&amp;nbsp;&amp;nbsp;Update the Shell's code behind as follows:&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Publishes(&amp;quot;ShellSizeChanged&amp;quot;)]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public event EventHandler ShellSizeChanged;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Shell()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void Window_SizeChanged(object sender, SizeChangedEventArgs e)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ShellSizeChanged != null)&lt;br&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; ShellSizeChanged(sender, e);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;7.&amp;nbsp; Update the OrdersEditorView code behind as follows:&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SubscribesTo(&amp;quot;ShellSizeChanged&amp;quot;)]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void OnSizeChanged(object sender, EventArgs e)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SizeChangedEventArgs args = e as SizeChangedEventArgs;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListView1.Height = args.NewSize.Height-160;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
If&amp;nbsp;we (you or I)&amp;nbsp;didn't miss anything, when you resize the form your ListView1 control will resize accordingly&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;</description><author>BillKrat</author><pubDate>Sat, 19 Jul 2008 21:36:57 GMT</pubDate><guid isPermaLink="false">New Post: UserControl (View) not being measured correctly when  loaded into region 20080719093657P</guid></item></channel></rss>