5
我想有一個接口與三個組件相鄰。 第一個是ListView,另外兩個是Grids。ScrollViewer不滾動
由於組件會在右邊溢出,我想把它們放在ScrollViewer中。 我沒有成功。我試圖做一個非常簡單的例子來嘗試,但即使這個例子失敗了。
<ScrollViewer Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="600" Height="400">
<StackPanel Width="1200" Height="400" Orientation="Horizontal">
<Border Background="AntiqueWhite" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
<Border Background="Blue" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
<Border Background="LimeGreen" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" />
</StackPanel>
</ScrollViewer>
正如您所看到的,ScrollViewer在網格內部。 我錯過了什麼?
它工作。它一定是巫術......謝謝! – Jonas 2012-04-26 12:22:52
你能建議我使用scrollviewer進行觸摸輸入的滾動方法嗎? – 2015-11-25 11:29:30