リストボックスでscrollviewerを使用しているとき、リストボックスの最後にタッチスクロール。マウスホイールを使用すると、この動作は表示されません。このオーバースケール/ゴムバンド効果/スナップバック効果/バウンス効果を無効にするにはどうすればよいですか?xaml Scrollviewer - ウィンドウ全体のオーバースケール/ラバーバンド効果/スナップバック効果/バウンスを無効にする
私はWindows 8コンピュータで.NET Framework 4.5を使用しています。あなたはこのビデオでバウンス効果を見ることができます
:ここhttp://www.vidup.de/v/gQ2pI/
は私のサンプルコードです:
<Window x:Class="style_test_for_scrollviewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<ListBox Width="200">
<WrapPanel Width="200" ScrollViewer.PanningMode="VerticalOnly" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible">
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
<Button Height="200" Width="200"></Button>
</WrapPanel>
</ListBox>
</Grid>
</Window>