Skip to main content

ASPxPopupControl.ContentStyle Property

Gets style settings for a popup window’s content region.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public PopupWindowContentStyle ContentStyle { get; }

Property Value

Type Description

A PopupWindowContentStyle object that contains style settings for a window’s content region.


The ContentStyle property provides access to style settings which define the style for the content region of a popup window. A popup window’s content region is considered the area where window contents are displayed. It doesn’t include the window’s header and footer. The header and footer styles of a window can be defined via the window’s PopupWindow.HeaderStyle and PopupWindow.FooterStyle properties respectively.


If the ASPxPopupControl.Windows collection is empty, the ContentStyle property is applied to the default popup window. Otherwise, the ContentStyle property specifies a common content style for all popup windows from the ASPxPopupControl.Windows collection. In this case, the ContentStyle property’s value can be overridden by using the PopupWindow.ContentStyle property of individual windows.


This example illustrates how to customize an ASPxPopupControl’s setting container using particular properties.

<dx:ASPxButton ID="btn" runat="server" Text="Show PopUp" AutoPostBack="false">
    <ClientSideEvents Click="function (s,e) {popup.Show();}" />

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup" PopupElementID="btn"
    DragElement="Window" HeaderText="Directed by: Ridley Scott" MaxHeight="600px"
    MaxWidth="600px" MinHeight="100px" MinWidth="210px" CloseAction="MouseOut" PopupAction="MouseOver" 
    AppearAfter="4000" DisappearAfter="4000" Top="20" Left="80" AllowResize="true" AllowDragging="true"
    ResizingMode="Postponed" SaveStateToCookies="true">
    <CloseButtonImage Url="Images/close.png" AlternateText="No image" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
        <dx:PopupControlContentControl runat="server">
                When a Roman general is betrayed and his family murdered by a corrupt prince, he
                comes to Rome as a gladiator to seek revenge.</div>
See Also