Back to Devexpress

DockManager.ActivePanelChanged Event

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-20e85be3.md

latest2.5 KB
Original Source

DockManager.ActivePanelChanged Event

Fires after the active dock panel has been changed.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Docking")]
public event ActivePanelChangedEventHandler ActivePanelChanged
vb
<DXCategory("Docking")>
Public Event ActivePanelChanged As ActivePanelChangedEventHandler

Event Data

The ActivePanelChanged event's data class is ActivePanelChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
OldPanelGets the previously active dock panel.
PanelGets the processed dock panel. Inherited from DockPanelEventArgs.

Remarks

When end-users click anywhere within the dock panel, the dock panel becomes active. This can also be performed via code by assigning the desired dock panel to the docking manager’s DockManager.ActivePanel property. In both cases the ActivePanelChanged event is raised. Handle this event if you need to perform actions in response to dock panels being activated. For instance, you can focus a specific control within the active dock panel or display explanatory information about the activated control.

The event parameter’s DockPanelEventArgs.Panel and ActivePanelChangedEventArgs.OldPanel properties identify the recently and previously activated dock panels, respectively.

See Also

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace