Hello Hugues,
Thank you for contacting us.
When a
DockWindow has its
CloseAction property set to
Hide, this window is only closed (hidden) in
RadDock. However, this window is not detached from its
RadDock and you can manage it from the
RadDock collections.
Note that
RadDock arranges its windows by using a split container. Hence, when you have several
DocumentWindows and close one of them
, the close button is still visible on the
RadDock as the
SplitPanelElement is still displayed. But when you close the last
DocumentWindow the
SplitPanelElement is removed. Afterwards, if you show the hidden
DocumentWindows, a new
SplitPanelElement is created. As a result, a new close button is created. That is why its
Tag property is reset. You can check the hashcode of the
DocumentWindow in order to confirm that the window is exactly the same.
RadDock introduces the
PageViewInstanceCreated event, which is fired when a new pageview instance is created to display the
DocumentWindows. In the
DockStateChanged event you can get the new
SplitPanelElement and subscribe to the new close button's
Click event.
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Dess
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.