Back to Devexpress

Popup Control Appearance Customization

aspnet-115454-components-docking-and-popups-popup-control-appearance-customization.md

latest5.3 KB
Original Source

Popup Control Appearance Customization

  • Jul 02, 2021
  • 2 minutes to read

ASPxPopupControl allows you to customize its appearance. You can set up style settings related to all its visual elements. There are two general ways to do this:

Apply a DevExpress Theme

The DevExpress ASP.NET control suite includes a set of predefined visual themes. To apply an available theme, assign its name to the ASPxWebControl.Theme property.

aspx
<dx:ASPxPopupControl runat="server" ID="Popup" Theme="BlackGlass" ...>
    ...
</dx:ASPxPopupControl>

A theme is set at the control level, so if your popup control contains several popup windows and one of the predefined themes is set for the control, this theme is applied to all popup windows. If you want to use different themes for different popup windows, use multiple popup controls for this purpose. You can also use the second approach to customize each window manually.

Customize the Appearance Manually

You can use corresponding style objects to define the appearance of individual UI elements. Style objects defined at the control level affect all popup windows in the collection (including the default window if the ASPxPopupControl.Windows collection is empty), unless the corresponding object is redefined at a particular window level (for example, the ASPxPopupControl.FooterStyle and PopupWindow.FooterStyle properties).

aspx
<dx:ASPxPopupControl runat="server" ID="Popup" Theme="BlackGlass" ...>
    ...
    <HeaderStyle Font-Bold="true" Font-Italic="true" ForeColor="Red" />
    ...
</dx:ASPxPopupControl>

The table below lists properties related to the main visual elements of the popup windows.

ElementProperty nameExists at the window level
Pin ButtonASPxPopupControl.PinButtonStyleYes (the PopupWindow.PinButtonStyle property).
Refresh ButtonASPxPopupControl.RefreshButtonStyleYes (the PopupWindow.RefreshButtonStyle property).
Collapse ButtonASPxPopupControl.CollapseButtonStyleYes (the PopupWindow.CollapseButtonStyle property).
Maximize ButtonASPxPopupControl.MaximizeButtonStyleYes (the PopupWindow.MaximizeButtonStyle property).
Close ButtonASPxPopupControl.CloseButtonStyleYes (the PopupWindow.CloseButtonStyle property).
Loading PanelASPxPopupControl.LoadingPanelStyleNo (can be set at the control level only).
Window HeaderASPxPopupControl.HeaderStyleYes (the PopupWindow.HeaderStyle property).
Window FooterASPxPopupControl.FooterStyleYes (the PopupWindow.FooterStyle property).

See Also

Popup Control Elements