Making ViewModel Properties Visible To Binding In Silverlight -
I am bound to my Silverlight view object (named Client) and Observe Collection (named contact) property, my client class Has some string properties and the ObserveWeb collection, which is called a contact, is a property on a client called MyView-Model (which implements INotifyPropertyChanged) that contains client objects. If I list the object to ObortableCollection on Listobox In the RAY scene:
ItemsSite = "{Binding Path = Client.Press, Mode = Dove}"
Add more items to the archive, see updates right and I'm showing my newly added contacts It all works very well.
If I see this Public ObservableCollection Contacts {get {return Client.Contacts; } And ListBox for
item resource = "{binding path = contact, mode = two}"
The view is never updated.
I contact clients like this:
Client. contact. Add (New Communication)
Why is not the contact list updated? How can I change this so that it does? What is the client? Is it OK to force contacts? After adding a new contact, after breaking the code it shows that the new new contact is being added to the object collection, but the view is not visible in addition.
It seems that when executing items source = "{binding path = contact, mode = two}" Are bound to reach. Can you verify that you are giving the collection in the viewer constructor of MODEL immediately, because at the time of compulsion I feel that the contact example is not set (zero)
Comments
Post a Comment