how to get the double-click-time in WPF

后端 未结 1 1618
太阳男子
太阳男子 2021-01-11 16:15

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 w

相关标签:
1条回答
  • 2021-01-11 16:59

    You can use P/Invoke to call GetDoubleClickTime directly:

    [DllImport("user32.dll")]
    static extern uint GetDoubleClickTime();
    

    This will return the number of milliseconds for a double click.

    0 讨论(0)
提交回复
热议问题