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>