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 –