I have some external and my code, which uses OnPropertyChanged notifications for updating particular properties (to avoid expensive Refresh of properties)
But every time I'm getting the next thing - Recursive calls message... Yes, properties reset each other, they are self exclusive - if one set to true, then another is been set to false
For ex.,
private bool _prop1 = false;
public bool Prop1
{
get {return _prop1;}
set {_prop1 = value; if(_prop1) {_prop2=false;OnPropertyChanged("Prop2");}}
}
private bool _prop2 = false;
public bool Prop2
{
get {return _prop2;}
set {_prop2 = value; if(_prop2) {_prop1=false;OnPropertyChanged("Prop1");}}
}
I operate correctly with this, no any recursive things, all is ok
How can I switch off this notifications?
No another variant for me not to use this approach with OnPropertyChanged

Comment