I've created a my own class, which has public properties of the double data type X and Y, when one of these gets changed I want an event to fire which will be used to update the position of visual object like a canvas or something. I've been searching for answers online and I don't really understand how to properly do it. I'm new to programming and I've seen people mention INotifyPropertyChanged, but I don't know how to use it or where to put things.
I want an event to occur when X or Y get changed which I can attach a method to.. please help