Something other than INotifyPropertyChanged?

Go To StackoverFlow.com

0

I have the following property and pseudo-code method:

private DataModelMember _PropertyMember = new DataModelMember();
public DataModelMember PropertyMember
{
    get { return _PropertyMember; }
}

void GetWCFData()
{
    DataModel d = client.getWCFData();
    this._PropertyMember = d.result.anotherclass; //*(DataModelMember is anotherclass)
}

So, "this._PropertyMember = value" does in fact change the private member, it however does not update any of the properties inside (as evident with the databinding). It almost seems like my 'DataModelMember' class needs to inherit some other interface to notify of the class copy?

2012-04-04 02:36
by Rob


0

INotifyPropertyChanged is not magic.
You need to raise the PropertyChanged event yourself whenever the property changes.

2012-04-04 02:45
by SLaks