This is maybe not really a composite ui question, but more a general 'designing with silverlight' question. Though it is related to what I try to accomplish in a region.
My ShellView has a grid, 3 rows, 3 columns. row 0 and 2, column 0 and 2 are all fixed 100 pixels. So only the center cell should be resizing with the sizing of the browser. That seems to be the case.
In this center cell I have an Itemscontrol:
<ItemsControl cal:RegionManager.RegionName="MainRegion" Grid.Row="1" Grid.Column="1" Margin="5" Background="#FFDA2626"/>
And I have this very simple view that is inserted in the mainregion, Its only a colored layoutroot.
d:DesignWidth="640" d:DesignHeight="480" Background="#FFE41D1D" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid x:Name="LayoutRoot" Background="#FFD6CE16"/>
The problem: I dont get to see the usercontrol in the region, its there allright but it's not stretched to fill the whole cell. I know it;s there because if I give it a fixed size I can see it.
It is not clear to me who is responsible for getting the usercontrol streched, the usercontrol or the container?