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
fffffffffffffffff
test red font.

浙公网安备 33010602011771号