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"/>
非常感谢阅读!如有不足之处,请留下您的评价和问题。
请“推荐”本文!
原文地址:https://www.cnblogs.com/steven-yang/p/5130270.html