Back to Devexpress

Docking Visual Elements

aspnet-9768-components-docking-and-popups-docking-docking-visual-elements.md

latest11.5 KB
Original Source

Docking Visual Elements

  • Dec 19, 2024
  • 4 minutes to read

This topic describes the on-screen ASPxDockPanel and ASPxDockZone elements and lists the main members that affect their appearance and functionality.

Dock Zone

A dock zone (the ASPxDockZone control) is an area where users can dock panels.

You can use a dock panel’s ASPxDockPanel.ForbiddenZones property to specify prohibited zones for a panel - the zones to which a panel cannot be docked. To change the appearance of allowed and forbidden zone states, use a dock zone’s DockZoneStyles.DockingAllowedStyle and DockZoneStyles.DockingForbiddenStyle properties. These appearances are used to highlight zones when users drag panels and to indicate whether a specific zone allows them to dock panels.

A Panel Placeholder is a zone where users can dock the panel. Use the DockZoneStyles.PanelPlaceholder property to highlight this section when users drag the panel.

The table below lists the main members that affect element appearance:

CharacteristicsMembers
OrientationASPxDockZone.Orientation
AppearanceDockZoneStyles.Disabled, DockZoneStyles.DockingAllowedStyle, DockZoneStyles.DockingForbiddenStyle, DockZoneStyles.PanelPlaceholder
Panel SpacingASPxDockZone.PanelSpacing

Dock Panel

A dock panel (the ASPxDockPanel control) is a content placeholder that you can move and place at any part of a page or dock to zones within a web page.

A panel can consist of header, content and footer sections.

The table below lists the main members that affect element appearance and functionality.

CharacteristicsMembers
AnimationASPxPopupControlBase.PopupAnimationType
Dragging AbilityASPxDockPanel.AllowDragging
Drag ElementASPxPopupControlBase.DragElement
Resizing AbilityASPxPopupControlBase.AllowResize
Size ConstraintsASPxPopupControlBase.MinHeight, ASPxPopupControlBase.MaxHeight, ASPxPopupControlBase.MinWidth, ASPxPopupControlBase.MaxWidth
Scroll BarsASPxPopupControlBase.ScrollBars
Allowed StateASPxDockPanel.AllowedDockState

Panel Header

A dock panel’s header is displayed at the top of the panel and can consist of the header image, header text and close button. Users can use a panel’s header to drag the panel within the page (if the ASPxPopupControlBase.AllowDragging property is enabled).

The table below lists the main members that affect element appearance and functionality:

CharacteristicsMembers
VisibilityASPxPopupControlBase.ShowHeader
AppearancePopupControlStyles.Header
Text ContentASPxPopupControlBase.HeaderText
ImagePopupControlImages.Header
Navigation LocationASPxPopupControlBase.HeaderNavigateUrl
TemplateASPxPopupControlBase.HeaderTemplate

Header Buttons

A panel header can contain the following buttons: a pin button, refresh button, minimize button, maximize button, and close button.

The table below lists API members that allow you to customize the control’s button appearance and functionality.

CharacteristicsVisibilityImageStyleDescription
Pin ButtonASPxPopupControlBase.ShowPinButtonPopupControlImages.PinButtonPopupControlStyles.PinButtonAllows you to pin the panel
Refresh ButtonASPxPopupControlBase.ShowRefreshButtonPopupControlImages.RefreshButtonPopupControlStyles.RefreshButtonAllows you to refresh the panel
Collapse ButtonASPxPopupControlBase.ShowCollapseButtonPopupControlImages.CollapseButtonPopupControlStyles.CollapseButtonAllows you to minimize the panel
Maximize ButtonASPxPopupControlBase.ShowMaximizeButtonPopupControlImages.MaximizeButtonPopupControlStyles.MaximizeButtonAllows you to collapse the panel
Close ButtonASPxPopupControlBase.ShowCloseButtonPopupControlImages.CloseButtonPopupControlStyles.CloseButtonAllows you to close the panel

Panel Content Region

A dock panel’s content region is the main panel element that displays the content. This region can contain a set of child web controls or HTML elements.

The table below lists the main members that affect element appearance and functionality:

CharacteristicsMembers
AppearancePopupControlStyles.Content
Content TextASPxPopupControlBase.Text
Content ElementsASPxPopupControlBase.Controls
External ContentASPxPopupControlBase.ContentUrl

Loading Panel

The Loading Panel is displayed within a panel while waiting for a callback response. The loading panel contains a transparent Loading Div element (the default setting). You can change the div element’s style settings to display it.

The table below lists the main members that affect the appearance and functionality of loading panels.

CharacteristicMembers
DelaySettingsLoadingPanel.Delay
VisibilitySettingsLoadingPanel.Enabled
TextSettingsLoadingPanel.Text
ImageSettingsLoadingPanel.ShowImage, SettingsLoadingPanel.ImagePosition, PopupControlImages .LoadingPanel
StylePopupControlStyles.LoadingPanel
Div Element StylePopupControlStyles.LoadingDiv

A dock panel’s footer is displayed at the bottom of the panel and can consist of the footer image, footer text and size grip.

The table below lists the main members that affect element appearance and functionality:

CharacteristicsMembers
VisibilityASPxPopupControlBase.ShowFooter
AppearancePopupControlStyles.Footer
Text ContentASPxPopupControlBase.FooterText
ImagePopupControlImages.Footer
Navigation LocationASPxPopupControlBase.FooterNavigateUrl
TemplateASPxPopupControlBase.FooterTemplate

Size Grip

The size grip allows users to resize a panel diagonally. Set the ASPxPopupControlBase.ShowSizeGrip property to the following to specify how the size grip is displayed:

The table below lists the main members that affect element appearance and functionality:

CharacteristicsMembers
VisibilityASPxPopupControlBase.AllowResize, ASPxPopupControlBase.ShowSizeGrip
ImagePopupControlImages.SizeGrip