![Avatar](https://secure.gravatar.com/avatar/add07cf6ecaf2f8fad8cf4cbf2b31211.jpg?s=64&d=identicon&r=g)
Hello,
I'm just updating from the old "DockableWindows" product to the new "UIStudio". All in all this went quite smooth. For most features I easily found the corresponding class/event/method in the new product.
In DockableWindows I subscribed to the "DocumentContainerCloseButtonClicked" event, to ask the user if he wants to save the document before closing. In "UIStudio" I could use the "WindowsClosing"-event. Unfortunately, this event is raised whenever a window is closed and I don't have the information why it is raised. How can I find out if the window is closing, because the close-button was clicked or if it is closing because "Close" was called, the program closes, etc...?
UseCase:
When a document is closed via the close button the user is asked if he wants to save it. When the program is closed the document is saved to a special area and when the program is opened again the document is loaded from this area, so the user can continue working. Therefore I need to differentiate these cases.
Regards,
Michael Knorr
I'm just updating from the old "DockableWindows" product to the new "UIStudio". All in all this went quite smooth. For most features I easily found the corresponding class/event/method in the new product.
In DockableWindows I subscribed to the "DocumentContainerCloseButtonClicked" event, to ask the user if he wants to save the document before closing. In "UIStudio" I could use the "WindowsClosing"-event. Unfortunately, this event is raised whenever a window is closed and I don't have the information why it is raised. How can I find out if the window is closing, because the close-button was clicked or if it is closing because "Close" was called, the program closes, etc...?
UseCase:
When a document is closed via the close button the user is asked if he wants to save it. When the program is closed the document is saved to a special area and when the program is opened again the document is loaded from this area, so the user can continue working. Therefore I need to differentiate these cases.
Regards,
Michael Knorr