Timepicker Updatesourcetrigger=propertychanged doesn't change value

后端 未结 2 1847
醉酒成梦
醉酒成梦 2021-01-19 15:34

I\'m hosting a WPF usercontrol in a windows form In the wpf user control I am using a timepicker from wpfToolkit.extended

If I use the up or downkeys or just enter a

2条回答
  •  情歌与酒
    2021-01-19 16:06

    Does the TimePicker have a Text property? If so, try binding to that instead.

    I think this behavior might be to prevent you from binding to a bad datetime as you type. I would guess that when focus is lost it tries to set the property and does error checking. If it did this while you typed it would constantly be changing the value anytime you make a change (say delete a character).

    Is there something specific you are trying to do as you type?

提交回复
热议问题