【问题标题】:How to get Scroll to work with a Vertically oriented Hub Control Windows Phone 8.1 App如何让 Scroll 使用垂直方向的 Hub Control Windows Phone 8.1 应用程序
【发布时间】:2014-10-09 15:07:24
【问题描述】:

我正在构建一个 WinRT Windows Phone 8.1 应用程序。我想使用具有三个集线器部分的垂直集线器控件。但是,即使在集线器上启用了所有必要的滚动查看器属性后,集线器控件的垂直滚动似乎也不起作用。如何启用垂直滚动?

这是我的集线器控件

<Hub Orientation="Vertical" ScrollViewer.VerticalScrollMode="Enabled" ScrollViewer.IsVerticalRailEnabled="True" ScrollViewer.IsVerticalScrollChainingEnabled="True">
    <HubSection>
        <DataTemplate>
            <TextBlock Text="HELLO 1" FontSize="50" />
        </DataTemplate>
    </HubSection>
    <HubSection>
        <DataTemplate>
            <TextBlock Text="HELLO 2" FontSize="50" />
        </DataTemplate>
    </HubSection>
    <HubSection>
        <DataTemplate>
            <TextBlock Text="HELLO 3" FontSize="50" />
        </DataTemplate>
    </HubSection>
</Hub>

如果有人能指出我正确的方向,我会很高兴。提前致谢。

【问题讨论】:

    标签: c# windows-runtime winrt-xaml windows-phone-8.1 win-universal-app


    【解决方案1】:

    集线器设计为仅与 Orientation=”horizo​​ntal” 一起使用。不要在 Orientation="vertical" 中使用它。

    发现于Windows blogs post

    还有

    仅纵向支持集线器控件的行为和呈现。

    MSDN WP8.1 Guidelines

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      • 2014-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多