diff --git a/StabilityMatrix/CheckpointManagerPage.xaml b/StabilityMatrix/CheckpointManagerPage.xaml index 584bac99..3a2cbfc4 100644 --- a/StabilityMatrix/CheckpointManagerPage.xaml +++ b/StabilityMatrix/CheckpointManagerPage.xaml @@ -18,54 +18,35 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - + - + - + - - + + + + + + + + diff --git a/StabilityMatrix/CheckpointManagerPage.xaml.cs b/StabilityMatrix/CheckpointManagerPage.xaml.cs index 21286206..d9ff1248 100644 --- a/StabilityMatrix/CheckpointManagerPage.xaml.cs +++ b/StabilityMatrix/CheckpointManagerPage.xaml.cs @@ -2,6 +2,7 @@ using System.Threading; using System.Windows; using System.Windows.Controls; +using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Effects; using StabilityMatrix.ViewModels; @@ -74,4 +75,25 @@ public partial class CheckpointManagerPage : Page { await viewModel.OnLoaded(); } + + /// + /// Bubbles the mouse wheel event up to the parent. + /// + /// + /// + private void VirtualizingGridView_OnPreviewMouseWheel(object sender, MouseWheelEventArgs e) + { + if (e.Handled) return; + + e.Handled = true; + var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta) + { + RoutedEvent = MouseWheelEvent, + Source = sender + }; + if (((Control)sender).Parent is UIElement parent) + { + parent.RaiseEvent(eventArg); + } + } }