Page 1 of 1

Use OnPropertyChanged to indicate all props of a view model have changed

Posted: 15 Sep 2022, 10:10
by christyjquinn
Hello,

Just wanted some clarification on an assumption I've made around "OnPropertyChanged". I can see in the WPF docs that if you pass an empty string to "OnPropertyChanged" it should indicate that all properties have changed - https://docs.microsoft.com/en-us/dotnet ... .0#remarks. Is that the case within Noesis and if not is it possible to do this from a view model?

Thanks!

Re: Use OnProprtyChanged to indicate all props of a view model have changed

Posted: 15 Sep 2022, 10:16
by christyjquinn
Just took a look at "BindingExpression::OnNotifyPropertyChanged" and it looks like it doesn't work this way. Would still be good to get confirmation though!

Re: Use OnPropertyChanged to indicate all props of a view model have changed

Posted: 15 Sep 2022, 11:28
by sfernandez
Hi,

This is something we don't have implemented in Noesis, but we should because it could have performance benefits in some situations, as with a single notification all the bindings to the object will be updated. Could you please report it in our bugtracker, we want to support this.

Thanks.

Re: Use OnPropertyChanged to indicate all props of a view model have changed

Posted: 26 Sep 2022, 14:18
by sfernandez
Added the following issue #2432 to the bugtracker to implement this.

Re: Use OnPropertyChanged to indicate all props of a view model have changed

Posted: 12 Oct 2022, 00:20
by christyjquinn
Awesome thanks!