Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Forbidden Zones

This example demonstrates the forbidden zones feature, which allows you to control a panel's ability to selectively dock to specific zones.

Using a dock panel's ForbiddenZones property, you can specify prohibited zones for the panel - the zones to which the panel cannot be docked. It is also possible to provide different appearances for the allowed and forbidden zone states using the dock zone's Styles.DockingAllowedStyle and Styles.DockingForbiddenStyle properties, respectively. These appearances are used to highlight zones during panel dragging, and to indicate whether a particular zone allows or prohibits panel docking.