WPF ComboBox, force input to UpperCase

后端 未结 4 1186
孤城傲影
孤城傲影 2021-01-20 05:45

I have an editable WPF ComboBox with TextSearchEnabled. I need to force the user\'s text input to uppercase when they type to filter the ComboBox.

I was thinking of

4条回答
  •  -上瘾入骨i
    2021-01-20 06:40

    IMO, the quicker way is to set the UpdateTrigger to PropertyChanged and, in the data object, uppercase the value when it is updated.

提交回复
热议问题