【问题标题】:Hub Control Pagination in UWP (Windows 10)UWP 中的集线器控制分页 (Windows 10)
【发布时间】:2016-04-09 00:49:18
【问题描述】:

我在 UWP(通用 Windows 10 应用程序)中使用 Hub 控件,因为它比 FlipView 和 Pivot 更高效,但我发现 UWP 中的 Hub 控件不支持分页功能,它只支持连续滚动。

我想通过使用 XAML 和 C# 将分页功能添加到 Hub 控件

<Hub x:Name="hub">
<HubSection>
    <DataTemplate>
        <Grid>   
        </Grid>
    </DataTemplate>
</HubSection>

<HubSection>
    <DataTemplate>
        <Grid>   
        </Grid>
    </DataTemplate>
</HubSection>
</Hub>

【问题讨论】:

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


    【解决方案1】:

    您需要管理 HubSection 的集合项源,因此当您滚动到某个部分时,您会检查源集合中当前项的位置,并在需要时决定加载更多。

    【讨论】:

    • 怎么样,能给我c#代码或者xaml代码吗?
    • 对不起,这可能需要我更多的时间和精力,我不能保证任何事情,但如果我有时间我会在这里发布。
    猜你喜欢
    • 1970-01-01
    • 2015-12-31
    • 1970-01-01
    • 2016-01-26
    • 1970-01-01
    • 2016-10-28
    • 2016-07-22
    • 2015-11-05
    相关资源
    最近更新 更多