The event handler receives an argument of type DockPanelEventArgs containing data related to this event.
The following
DockPanelEventArgs properties provide information specific to this event.
Property |
Description |
Panel |
Gets the processed dock panel.
|
The UnregisterDockPanel event occurs when a panel (a regular panel, a tab container or split container) is removed from the dock manager. For instances when a panel is destroyed or moved to another dock manager.
An end-user is able to dock panels to each other thus forming a tab container or split container. Removing panels from a container may result in this container being destroyed (if it doesn't contain any other panels). In this case, the UnregisterDockPanel event will be fired for this container.
If a panel is moved to another dock manager (via a DockPanel.DockTo overload) the UnregisterDockPanel event is fired as well.
Adding a panel to a dock manager triggers the RegisterDockPanel event.