Databinding to a method in WPF

前端 未结 5 1194
失恋的感觉
失恋的感觉 2021-02-13 13:49

I am having trouble databinding a TextBox.Text property to a object\'s method. The idea is allowing the user to write in a TextBox a file name and then

5条回答
  •  借酒劲吻你
    2021-02-13 14:19

    Is the DataContext set? In your code-behind, did you set the value for your TextBlock to "saadsas" (I can only guess), which broke your databinding?

提交回复
热议问题