Grid row height is star, but the height setting does not work in a prism:region
- Problem:
My original code is
<ItemControl Grid.Row="0" Name="MainRegion" prism:RegionManager.RegionName="MainRegion"/>
-
Cause:
The cause is that ItemControl uses StackPanel to contain its children, which leads the star height does not work. -
Solution:
<ContentControl Grid.Row="0" Name="MainRegion" prism:RegionManager.RegionName="MainRegion"/>