WPF combobox search item

前端 未结 1 723
情书的邮戳
情书的邮戳 2021-01-23 05:09

Is there any way to control the size of the interval, that is used when selected an item in a combobox via keystrokes. E.g. a combox contains {\"12,\"2}:

Pushing 1 and q

相关标签:
1条回答
  • 2021-01-23 06:10

    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.

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