Bind property we cannot change
Suppose we have class User, some properties like this:
public class User{
public string Name;
public int Age;
}
Due to some reason, we cannot modify the User(to implement the
INotifyPropertyChanged), but we want to bind to the user's name. So if the
name changed somewhere(not by us, means changes we may not very clear when
or where, but we know it would happen), the UI can changed too.
Any good suggestions?
No comments:
Post a Comment