Back to Devexpress

ASPxPopupControl.DisappearAfter Property

aspnet-devexpress-dot-web-dot-aspxpopupcontrol-aa4a3f9e.md

latest2.7 KB
Original Source

ASPxPopupControl.DisappearAfter Property

Gets or sets the delay in hiding the popup control’s popup window.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(500)]
public int DisappearAfter { get; set; }
vb
<DefaultValue(500)>
Public Property DisappearAfter As Integer

Property Value

TypeDefaultDescription
Int32500

An integer value that specifies the time interval, in milliseconds, after which a popup window is hidden.

|

Remarks

When the ASPxPopupControl.CloseAction property is set to CloseAction.MouseOut, a popup window can be hidden after a certain duration. Use the DisappearAfter property to specify the delay in hiding a popup window.

Example

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

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

<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" />
    <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>

See Also

AppearAfter

ASPxPopupControl Class

ASPxPopupControl Members

DevExpress.Web Namespace