Why isn’t there a possibility to get old value from ValueChangeEvent? It’s rather expected from value change event to provide both old and new value.
Is there any build-in event type that would allow me to notify about value change and containing both old and new value? Is there any easy way to implement custom event like that without too much effort?
Ok, I solved it by implementing custom type to be used in application:
Now in our event source (e.g. custom control) we can implement interface in this way:
And can fire events from our source this way:
So we can access both old value and new value on handler side. There was no need to implement new event type, hanlder type etc. We can keep using
ValueChangeEvents which are semantically correct for our use case.