I have created a base class for Dialog view models. It has a property "Cancel" which is used to detect whether the dialog was closed by submitting, or by closing the window "x" button. If user closes the window without submitting, nothing should happen.
All future dialogs should use this as the base class of the ViewModel class.
I have created a base class for Dialog view models. It has a property "Cancel" which is used to detect whether the dialog was closed by submitting, or by closing the window "x" button. If user closes the window without submitting, nothing should happen.
All future dialogs should use this as the base class of the ViewModel class.