增加滚轮切换菜单功能

This commit is contained in:
liufei
2022-05-20 16:36:54 +08:00
parent d01a27b827
commit 84727d8040
2 changed files with 31 additions and 1 deletions

View File

@@ -8,7 +8,8 @@
xmlns:cvt="clr-namespace:GeekDesk.Converts"
xmlns:DraggAnimatedPanel="clr-namespace:DraggAnimatedPanel"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
d:DesignHeight="450" d:DesignWidth="800"
>
<UserControl.Resources>
<!--左侧栏样式动画-->
@@ -104,6 +105,7 @@
SelectedIndex="{Binding AppConfig.SelectedMenuIndex}"
VirtualizingPanel.VirtualizationMode="Recycling"
SelectionChanged="Menu_SelectionChanged"
PreviewMouseWheel="Menu_MouseWheel"
>
<ListBox.Resources>
<ContextMenu x:Key="MenuDialog" Width="200">