Back to Devexpress

DockZoneStyles.DockingAllowedStyle Property

aspnet-devexpress-dot-web-dot-dockzonestyles.md

latest2.8 KB
Original Source

DockZoneStyles.DockingAllowedStyle Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public AppearanceSelectedStyle DockingAllowedStyle { get; }
vb
Public ReadOnly Property DockingAllowedStyle As AppearanceSelectedStyle

Property Value

TypeDescription
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

aspx
<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

DockingForbiddenStyle

PanelPlaceholder

ASPxDockZone

Disabled

Forbidden Zones

Online Demo: Docking - Forbidden Zones

DockZoneStyles Class

DockZoneStyles Members

DevExpress.Web Namespace