我尝试将我的 Windows 8.1 应用程序迁移到 Windows 10 Mobile (SDK 10240),但集线器控件不像在 Windows Phone 8.1 中那样工作。
集线器部分太小或太大,不适合手机屏幕宽度。
我没有找到任何属性来解决这个问题。
<Hub Background="White" Header="Header">
<HubSection x:Uid="HubSection1" Header="Header1">
<DataTemplate>
<TextBlock Text="Content1" />
</DataTemplate>
</HubSection>
<HubSection x:Uid="HubSection2" Header="Header2" >
<DataTemplate>
<TextBlock Text="Content2" />
</DataTemplate>
</HubSection>
</Hub>
我希望它像在 Windows Phone 8.1 中一样,Header1 在第一页,Header2 在第二页,等等......