Updating listbox from code behind
This is the price you will have to pay if you want to bind to your own classes and have the changes reflected in the UI immediately.
Obviously you only have to call Notify Property Changed in the setter's of the properties that you bind to - the rest can remain the way they are.
The second step is to let our custom User class implement the INotify Property Changed interface.
The following example will show you why we need these two things: Try running it for yourself and watch how even though you add something to the list or change the name of one of the users, nothing in the UI is updated.
The example is pretty simple, with a User class that will keep the name of the user, a List Box to show them in and some buttons to manipulate both the list and its contents.
The second Text Box uses the Lost Focus value, which is actually the default for a Text binding.
It means that the source value will be updated each time the destination control loses focus.