wpf 去除contextmenu显隐动画

1 <UserControl.Resources>
2         <PopupAnimation x:Key="{x:Static SystemParameters.MenuPopupAnimationKey}">None</PopupAnimation>
3         <ContextMenu x:Key="ContextMenu">
4             ……
5         </ContextMenu>
6 </UserControl.Resources>
<PopupAnimation x:Key="{x:Static SystemParameters.MenuPopupAnimationKey}">None</PopupAnimation>
posted @ 2023-01-31 10:46  dyfisgod  阅读(56)  评论(0编辑  收藏  举报