Composite Application Block (CAB) ItemsControl vertical stretch

So we just started using the Composite Application Block for a Silverlight project. Greate stuff. But we quickly ran into an issue where we were unable to make a subview stretch to fill out its containing region. Turned out that a template containing a DockPanel needed to be added to the ItemsControl representing the region.

After lots of playing arround, I finally found the solution here:
http://www.global-webnet.net/blogengine/post/2008/08/09/CompositeWPF-Getting-your-view-to-stretch-vertically-as-well-as-horizontally.aspx

Advertisements

Tags: , , , , , , ,

2 Responses to “Composite Application Block (CAB) ItemsControl vertical stretch”

  1. Krimson Says:

    Hi, do you have a sample of this, because even with the DockPanel I cant get my UserControl inside the ItemsControl to stretch to the full height of the ItemsControl.

  2. Krimson Says:

    Nevermind, I solved it as described here:
    http://compositewpf.codeplex.com/WorkItem/View.aspx?WorkItemId=4318

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: