弹来弹去跑马灯!

WPF 取消在触屏上点击按下不松开会出现矩形背景的效果

 

加个属性:  btn.SetValue(Stylus.IsPressAndHoldEnabledProperty,false);

或者在样式里设置:

<Style x:Key="MyButtonStyle" TargetType="{x:Type Button}">
    <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
    ...
</Style>

  

 

参考:http://www.mobilemotion.eu/?p=1396

 

posted @ 2021-09-23 10:48  wgscd  阅读(86)  评论(0编辑  收藏  举报