我在UWP (通用Windows10应用程序)中使用集线器控件,因为它比FlipView和Pivot更有效,但我发现UWP中的集线器控件不支持分页功能,它只支持连续滚动。
我想通过使用XAML和C#向集线器控件添加分页功能
<Hub x:Name="hub">
<HubSection>
<DataTemplate>
<Grid>
</Grid>
</DataTemplate>
</HubSection>
<HubSection>
<DataTemplate>
<Grid>
</Grid>
</DataTemplate>
</HubSection>
</Hub>发布于 2016-04-09 20:42:38
您需要管理HubSection的集合项源,因此当您滚动到某个部分时,可以检查当前项在源集合中的位置,并决定在需要时加载更多项。
https://stackoverflow.com/questions/36511484
复制相似问题