
I am building an application to edit business objects from a database. I would like the user interface to work like Visual Studio, in as much that closing an individual tab forces a user to save or discard changes.
When editing an object, I create a ToolWindow programatically for that object and then set it up as a tab in a Tabbed MDI area. If I close one of the tabs after making an edit, I would like to have a MessageBox (or similar) pop up with a 'Save changes? yes/no/cancel' dialog. Is there any way to trigger this dialog without an OnClosing event in the ToolWindow?
I am still quite new to WPF and .net programming.
When editing an object, I create a ToolWindow programatically for that object and then set it up as a tab in a Tabbed MDI area. If I close one of the tabs after making an edit, I would like to have a MessageBox (or similar) pop up with a 'Save changes? yes/no/cancel' dialog. Is there any way to trigger this dialog without an OnClosing event in the ToolWindow?
I am still quite new to WPF and .net programming.