如何让双击时间在WPF双击、时间、WPF

2023-09-03 03:26:52 作者:深情迎风散

我怎样才能得到持续时间以毫秒为单位的有效期为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.