The event handler receives an argument of type DevExpress.XtraBars.Docking2010.DocumentsHostWindowEventArgs containing data related to this event.
The following
DocumentsHostWindowEventArgs properties provide information specific to this event.
Property |
Description |
HostWindow |
|
If the FloatingDocumentContainer property is set to DocumentsHost, when a document is undocked from the main form and made floating, it is placed within a special container (IDocumentsHostWindow object) which possesses its own DocumentManager (accessible via the IDocumentsHostWindow.DocumentManager property). This DocumentManager does not handle those events that the main form's DocumentManager handles. The RegisterDocumentsHostWindow event is fired when a document is made floating and provides access to the created documents host window via the DocumentsHostWindowEventArgs.HostWindow property. This allows you to get access to its DocumentManager via the IDocumentsHostWindow.DocumentManager property and subscribe its events to the event handles of the main form's DocumentManager. To unsubscribe event handlers from the DocumentManager when the documents host window is closed, use the UnregisterDocumentsHostWindow event.
You can also use the CustomDocumentsHostWindow event to provide a custom documents host window for floating documents in the DocumentsHost mode.