WindowBehaviour with SaveAndClose

Dec 14, 2011 at 12:25 PM


after changing to Catel 2.4 the Window with Behaviour does not fire an event in case of clicking the defined button for SaveAndClose. What mistake did I make? Thank's for your help.


PS.: CancelAndClose is working fine.


Dec 14, 2011 at 12:40 PM

I assume you are using WPF. If that is not the case, please let me know. The Save can (and will) only be invoked when the view model does not have any errors. I have just tested the example application, and it works fine as long as there are no errors in the view model.

Dec 15, 2011 at 8:12 PM

It works great. Validation was the point. Sorry for that.

Dec 15, 2011 at 8:13 PM

No problem, if you have any other issues, just let us know!