What is the best method, to detect, wether datas has changed in a WPF-Window or not?
I've created a default window for our project, which contains basic saving and delete behaviour. But currently the window always asks, wether to save changes or not. But i want to implement, that the save-dialog only appears, if the user realy had changed some thing.
The first idea i had was, to create an interface, which must be implemented in all controls which were used in the window. But than i'm not able to simply use the wpf default controls.
Does anyone has some experiances with this approach?
Thank you!