WPF: TextBox Text is not updating

后端 未结 4 985
囚心锁ツ
囚心锁ツ 2021-01-12 06:42

I have a user control that i am using inside a DataTemplate, this UserControl contains a TextBox which is binded with Value p

4条回答
  •  旧时难觅i
    2021-01-12 07:07

    It looks like you are breaking binding when you set property value directly from code behind.

    You shouldn't modify property that way. Use value coercion mechanism and validate input in the Coerce value callback.

提交回复
热议问题