WPF Issues

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"/>
posted @ 2016-01-14 15:28  SNYang  阅读(183)  评论(0编辑  收藏  举报