C# 如何从TranslateZoomRotateTebehavior禁用旋转手势
TranslateZoomRotateBehavior控件具有以下受支持的手势:C# 如何从TranslateZoomRotateTebehavior禁用旋转手势,c#,wpf,C#,Wpf,TranslateZoomRotateBehavior控件具有以下受支持的手势: 全部 TranslateX 特兰西 翻译 轮换 鳞片 没有 我想使用除旋转以外的所有手势。有什么方法可以超越控制吗?我已经找到了。您只需从SupportedGestures属性设置多个值: <i:Interaction.Behaviors> <ei:TranslateZoomRotateBehavior MaximumScale="3" MinimumScale="1"
- 全部
- TranslateX
- 特兰西
- 翻译
- 轮换
- 鳞片
- 没有
我想使用除旋转以外的所有手势。有什么方法可以超越控制吗?我已经找到了。您只需从SupportedGestures属性设置多个值:
<i:Interaction.Behaviors>
<ei:TranslateZoomRotateBehavior MaximumScale="3" MinimumScale="1"
SupportedGestures="Scale, Translate" ConstrainToParentBounds="True"/>
</i:Interaction.Behaviors>