OnPropertyChanged(args) Question

Hi, sorry if this is a sill question, but i can't figure out what the point of OnPropertyChanged(args) in every setter of every property. I can't find any situation where the public void OnPropertyChanged(PropertyChangedEventArgs args) { } isn't empty.

Could someone please explain to me the point of it? Is it simply to add extra functionality when a property is changed?

I saw in this thread OnPropertyChanged that it "It's an event that will be raised on every global property change:" . But what does that mean exactly, and what can we do with this?

Thanks

Hi @UrgedTaylor,

The idea of this event is to reload the page or parts of the page if a global or page property value is changed.

@enchev Thank you!

Could you give me an example of a global property value being changed to trigger this?

Thanks

You just need to set new value to your global property.