代码
public ImagePage() { this.InitializeComponent(); this.Loaded += ImagePage_Loaded; this.PointerWheelChanged += ImagePage_PointerWheelChanged; } private void ImagePage_PointerWheelChanged(object sender, PointerRoutedEventArgs e) { var x = e.GetCurrentPoint(this).Properties.MouseWheelDelta; var index = MainPage._ImageObjects.IndexOf(para); if (x>0) { index += 1; if (index< MainPage._ImageObjects.Count) { para = MainPage._ImageObjects[index]; CurrentImage.Source = para.ImageBrush.ImageSource; } } else { index -= 1; if (index >= 0) { para = MainPage._ImageObjects[index]; CurrentImage.Source = para.ImageBrush.ImageSource; } } e.Handled = true; }