1
A
回答
1
是的,你可以使用HubName.ScrollToSection(HubSectionName);
MSDN: Hub.ScrollToSection method
小例子
<Hub x:Name="myHub">
<HubSection x:Name="myHubSection">
<DataTemplate>
<Grid Width="2000" Height="1000">
<TextBlock Text="hi"></TextBlock>
<Button Content="ScrollToNext" VerticalAlignment="Bottom" Click="Button_Click"></Button>
</Grid>
</DataTemplate>
</HubSection>
<HubSection x:Name="myHubSection2">
<DataTemplate>
<Grid Width="900">
<TextBlock Text="hi2"></TextBlock>
</Grid>
</DataTemplate>
</HubSection>
</Hub>
// this will scroll to myHubSection2
private void Button_Click(object sender, RoutedEventArgs e)
{
this.myHub.ScrollToSection(this.myHubSection2);
}
相关问题
- 1. VBA /宏将行自动移动到各种其他工作表
- 2. Windows 10移动集线器/ HubSection
- 3. 如何测试各种移动变体的Android应用程序?
- 4. 的Android导航来自各种活动
- 5. 如何动态绘制各种图形
- 6. 如何自动移动trackbar
- 7. Android推出各种活动
- 8. 如何移动滚动条自动
- 9. 如何在rtorrent中自动移除已移动/已删除文件的种子?
- 10. 如何停止SpriteKit上的各种节点,然后恢复移动?
- 11. 针对各种移动设备的最佳框架
- 12. 各种设备的移动网页设计
- 13. jQuery如何自动移动到href div?
- 14. C#如何使PictureBox自动移动?
- 15. 如何自动移动的UIScrollView
- 16. 动态添加内容到hubsection xaml
- 17. 从MainActivity开始的各种活动
- 18. 动态创建在Laravel各种连接
- 19. 活动中的各种绘画对象
- 20. 创建各种重复动作场景
- 21. 从各种活动中访问Bluetooth“ConnectedThread”
- 22. 如何使用SSIS自动将XML文件导入到各种新表中
- 23. 如何在各种.NET ORM中使列成为自动递增的主键?
- 24. 最好的.NET方法来移动许多文件到各种目录和从各种目录?
- 25. 在各种SQL语法中创建自动关系
- 26. 让EF在各种错误后自动重新发送查询
- 27. 在javascript中自动调用函数的各种方法
- 28. 允许在各种密度的Android Drawable中自动缩放?
- 29. GORM/groovy自动将字符串转换成各种对象
- 30. Windows自动化工具将各种任务粘合在一起
还有一种方法来改变HubSection更慢? – prova2
@ prova2 ofcourse,参见:https://social.msdn.microsoft.com/Forums/windowsapps/en-US/1b667e9e-012c-4688-9711-87230337a621/making-the-windows-8-hub-control-scroll - 更好的程序化的手势?论坛= winappswithcsharp –