如何獲取scrollViewer/Listbox的向上/向下或向左/向右滾動事件?我有以下XAML。我想在用戶滾動時收到通知。如何在wp7中滾動查看器/列表框的向上/向下或向左/向右滾動事件
<ScrollViewer HorizontalScrollBarVisibility="Auto" Margin="0,6,-196,0" Height="Auto" Name="imageScroll">
<ListBox x:Name="myListBox" Margin="12,0,0,0">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation ="Horizontal" >
<StackPanel.RenderTransform>
<TranslateTransform X="0" />
</StackPanel.RenderTransform>
</StackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="GreenYellow" FontSize="60" Text="{Binding name}"/>
<HyperlinkButton Content="EVTEN" NavigateUri="{Binding price}" Foreground="AliceBlue" FontSize="40" TextOptions.TextHintingMode="Animated"/>
<TextBlock Foreground="Red" Padding="30" FontSize="60" Text="{Binding price}"/>
<TextBlock Foreground="GreenYellow" FontSize="60" Text="{Binding description}"/>
<TextBlock Foreground="Red" Padding="30" FontSize="60" Text="{Binding calories}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</ScrollViewer>
的LazyListBox有點複雜,但它確實我的工作。謝謝! – masiboo