Binding to double field with validation

前端 未结 6 939
时光说笑
时光说笑 2020-12-30 04:13

I\'m trying to bind TextBox to double property of some object with UpdateSourceTrigger=PropertyChanged. The goal is to immediately dur

6条回答
  •  温柔的废话
    2020-12-30 04:20

    Try using StringFormat on your binding:

     
    

    Not sure if that string format is even right since I've not done one for a while but it's just an example

提交回复
热议问题