c# - PropertyChanged events need to fire once per click -
I am sitting in a scenario where I believe my system is starting to start scaling issues and I believe that this is caused by not doing anything "right way"
Basically I have a silverlight project and in this particular domain there are many dependencies in my model < Pre> After that model, My app also pastes an additional event on the converted event in the property My update does a bunch of updated UI graphic content It produces images that bindings are used. And it works well. But now suppose that my weight Property also has an effect on other properties, they also close the changing events of their properties (as they should, so all UI areas to be bound to those qualities will be updated), but then update the Ui all the time It means that if a property also affects 3 other properties, then the updated III will be trapped 4 times when it only results after the final property. Anything, just inefficient and architecture seems wrong. So what is essentially what I am asking, how can I get it that my UpdateUI only Your architecture is closed once a series of properties changes I have two ides to know. I'm not familiar with Silverlight, only WPF, but I think the same principles apply. int_Wight; Public gut weight ({return _Wight;} set {if (value! = _Wight) {_Weight = value; RaisePropertyChanged ("weight"); then}
myObject.PropertyChanged + = UpdateUI;
Comments
Post a Comment