[英]WPF combobox search item
Is there any way to control the size of the interval, that is used when selected an item in a combobox via keystrokes. 有没有什么方法可以控制间隔的大小,该间隔是通过击键在组合框中选择一个项目时使用的。 Eg a combox contains {"12,"2}:
例如,一个combox包含{“ 12,” 2}:
Pushing 1 and quickly 2. Selects the first item in the list. 快速按1。2.选择列表中的第一项。 Pushing 1, wait a few seconds, push 2. Selects the second item.
按1,等待几秒钟,按2。选择第二项。
I would like to control this interval, such that case 2 is more likely to select the first item.. 我想控制此间隔,以使案例2更有可能选择第一项。
Regards, Fredrik 此致Fredrik
This behavior is governed by a private property, i doubt that you can change it. 此行为受私有财产支配,我怀疑您可以更改它。
// System.Windows.Controls.TextSearch
private TimeSpan TimeOut
{
get
{
return TimeSpan.FromMilliseconds((double)(SafeNativeMethods.GetDoubleClickTime() * 2));
}
}
As you can see this is actually dependent on the system's Doubleclick-Time. 如您所见,这实际上取决于系统的Doubleclick-Time。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.