【发布时间】:2014-06-13 14:43:49
【问题描述】:
我有以下代码:
<HubSection x:Name="modules_section" ...>
<DataTemplate>
<StackPanel Orientation="Vertical">
..................................
如何让 StackPanel 占据 HubSection 的全部高度?
VerticalAlignment="Stretch" 不起作用。
我也尝试使用绑定通过
<StackPanel Height={Binding ElementName=modules_section, Path=ActualHeight}" ...>
但集线器部分的实际高度似乎为 0(我也尝试在代码隐藏中设置它并调试以查看值)。
【问题讨论】:
-
我正在设置我的 windows 8.1 环境来重现这个问题,你能告诉我
HubSection周围的代码吗?
标签: windows-store-apps winrt-xaml windows-8.1