如何让双击时间在WPF [英] how to get the double-click-time in WPF
本文介绍了如何让双击时间在WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能得到持续时间以毫秒为单位的有效期为DoubleClick的WPF中。同为在Windows窗体 SystemInformation.DoubleClickTime
-property了。
How I can get the duration in milliseconds that is valid for a DoubleClick in WPF. The same as in Windows Forms the SystemInformation.DoubleClickTime
-property was.
推荐答案
您可以使用的P / Invoke调用GetDoubleClickTime 直接:
[DllImport("user32.dll")]
static extern uint GetDoubleClickTime();
这将返回的毫秒数为双击。
This will return the number of milliseconds for a double click.
这篇关于如何让双击时间在WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文