Binding constantly updated string with textbox

前端 未结 2 330
温柔的废话
温柔的废话 2021-01-26 13:08

I wish to bind a String with a textbox. The string is constantly being updated in a thread:

String inputread;

    public event PropertyChangedEventHandler Prope         


        
2条回答
  •  一个人的身影
    2021-01-26 13:33

    In threadFunc() function, you set the value directly to inputread (lower case), it's a field and have no call to OnPropertyChanged. You can change the code in threadFunc() to InputRead=plc.InputImage[1].ToString(); I hope it works for you.

提交回复
热议问题