mvvm - TextBox binding in WPF -
I have a textbox in the XAML file, the prop setter is not being called when I change the text in the text box I have a ProjectOffister I am able to get value in the text box and I am not able to update it. I am using the MVVM pattern
Below is my code XAML
textbox text = "{Binding Path = Officer, Mode = Dove, Update Resource = Changing Property}" x: name = "Pro JectOfficer "/>
See Model C
Public Staff Officer {Returns __Con.PrimaryOfficer; } Set {_con.PrimaryOfficer = value; _con.PrimaryOfficer.Update (true); }}
Staff.cs
Public class employee: EntityBase {public employee (); Public string address {get; } Public string code {get; Set; } Public override zero updates (); }
thanks
You are binding the type of property String on the text box for the property of the type officer on your viewhold I hope the setter is not being called because WPF can not convert.
If you check the output window in Visual Studio, you will likely see a binding error for this property.
Comments
Post a Comment