c# - Set TextBox Text programmatically and update the model -


i'm updating textbox.text value in c# model binded wasn't updated. when update visually works (commenting line mytextbox.text="new value"; , inputing manually value @ runtime)

<textbox name="mytextbox" text="{binding myvalue}"/> 

in view model need call notify of property changed binding value.

private string _myvalue; public string myvalue {     { return _value; }     set     {         _myvalue = value;         notifyofpropertychanged("myvalue");     } } 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -