Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get the double-click-time in WPF

Tags:

.net

wpf

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.

like image 897
HCL Avatar asked Sep 07 '10 20:09

HCL


1 Answers

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.

like image 164
Reed Copsey Avatar answered Nov 15 '22 23:11

Reed Copsey