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

DockZoneStyles.DockingAllowedStyle Property

Gets the style settings defining a zone‘s appearance, if the docking is available.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public AppearanceSelectedStyle DockingAllowedStyle { get; }

Property Value

Type Description
AppearanceSelectedStyle

An AppearanceSelectedStyle object that contains the style settings.

Remarks

When you drag a panel, zones can be highlighted, to show which of them are allowed or disallowed from docking. Use the DockingAllowedStyle property to specify the zone’s appearance, when docking is allowed. You can specify an appearance of a zone section where the panel can be docked, via the DockZoneStyles.PanelPlaceholder property. To specify the zone’s appearance when docking is disallowed, use the DockZoneStyles.DockingForbiddenStyle property.

Example

<dx:ASPxDockZone runat="server" ID="ASPxDockZone1" CssClass="verticalZone first" ZoneUID="zone1" PanelSpacing="3px" Width="240px" Height="433px">
     <Styles>
          <DockingAllowedStyle BackColor="#D6F0CE">
               <Border BorderColor="#AECDA7" BorderStyle="Solid" BorderWidth="1" />
          </DockingAllowedStyle>
          <DockingForbiddenStyle BackColor="#FADADA">
               <Border BorderColor="#EDBFBF" BorderStyle="Solid" BorderWidth="1" />
          </DockingForbiddenStyle>
     </Styles>
</dx:ASPxDockZone>
See Also