Back to Devexpress

ASPxPopupControlBase.ShowHeader Property

aspnet-devexpress-dot-web-dot-aspxpopupcontrolbase-df5bccb6.md

latest4.9 KB
Original Source

ASPxPopupControlBase.ShowHeader Property

Gets or sets a value that specifies whether a window’s header is displayed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool ShowHeader { get; set; }
vb
<DefaultValue(True)>
Public Property ShowHeader As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if a window’s header is displayed; otherwise, false.

|

Remarks

Set the ShowHeader property to false to hide a window header. In this case, set the ASPxPopupControlBase.DragElement property to DragElement.Window to allow end-users to drag the window.

Note

For ASPxPopupControl only:

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

Example

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

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

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup"
    ShowHeader="true" HeaderText="Directed by: Ridley Scott"
    HeaderNavigateUrl="http://devexpress.com/">
    <HeaderImage Url="Images/new.png" AlternateText="No image">
    </HeaderImage>
    <HeaderStyle ForeColor="#666677" Font-Size="12px" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
    <ContentCollection>
        <dx:PopupControlContentControl runat="server">
            <div >
                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>
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowHeader property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-grid-delete-confirm-dialog-with-dont-ask-me-again-option/CS/Solution/Default.aspx.cs#L16

csharp
ASPxPopupControl1.ContentStyle.Paddings.Padding = 0;
ASPxPopupControl1.ShowHeader = false;
ASPxPopupControl1.ShowSizeGrip = DevExpress.Web.ShowSizeGrip.False;

asp-net-web-forms-grid-delete-confirm-dialog-with-dont-ask-me-again-option/VB/Solution/Default.aspx.vb#L17

vb
ASPxPopupControl1.ContentStyle.Paddings.Padding = 0
ASPxPopupControl1.ShowHeader = False
ASPxPopupControl1.ShowSizeGrip = DevExpress.Web.ShowSizeGrip.False

See Also

DragElement

ShowFooter

ASPxPopupControlBase Class

ASPxPopupControlBase Members

DevExpress.Web Namespace