Skip to main content
A newer version of this page is available. .
Tab

DockManagerEventArgs.Panel Property

Gets the panel currently being processed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public ASPxDockPanel Panel { get; }

Property Value

Type Description
ASPxDockPanel

An ASPxDockPanel object that is the processed panel.

Example

The code sample below demonstrates how you can handle the AfterDock and AfterFloat events to provide different panel appearances for different dock states.

protected void MyASPxDockManager_AfterDock(object source, DevExpress.Web.DockManagerEventArgs e) {
     e.Panel.BackColor = e.Zone.BackColor;
     e.Panel.Styles.Header.BackColor = e.Zone.Border.BorderColor;
}
protected void MyASPxDockManager_AfterFloat(object source, DevExpress.Web.DockManagerEventArgs e) {
     e.Panel.BackColor = System.Drawing.Color.White;
     e.Panel.Styles.Header.BackColor = System.Drawing.Color.LightGray;
}
See Also