christyjquinn
Topic Author
Posts: 17
Joined: 17 Aug 2022, 17:03

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

15 Sep 2022, 10:10

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!
 
christyjquinn
Topic Author
Posts: 17
Joined: 17 Aug 2022, 17:03

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

15 Sep 2022, 10:16

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!
 
User avatar
sfernandez
Site Admin
Posts: 2995
Joined: 22 Dec 2011, 19:20

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

15 Sep 2022, 11:28

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.
 
User avatar
sfernandez
Site Admin
Posts: 2995
Joined: 22 Dec 2011, 19:20

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

26 Sep 2022, 14:18

Added the following issue #2432 to the bugtracker to implement this.
 
christyjquinn
Topic Author
Posts: 17
Joined: 17 Aug 2022, 17:03

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

12 Oct 2022, 00:20

Awesome thanks!

Who is online

Users browsing this forum: No registered users and 14 guests