Skip to main content
Tab

ASPxPopupControlBase.EnableAnimation Property

OBSOLETE

Use the PopupAnimationType property instead

Gets or sets a value that specifies whether a specific animation effect defined via the ASPxPopupControlBase.PopupAnimationType property is used when a window is invoked.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

Declaration

[Obsolete("Use the PopupAnimationType property instead")]
public bool EnableAnimation { get; set; }

Property Value

Type Description
Boolean

true if a specific animation effect is used; otherwise, false.

Remarks

Use the EnableAnimation property to control whether a window is invoked using a specific predefined animation effect. When this property is set to false, the window is invoked without any animation. If the EnableAnimation property is set to true, an animation effect specified by the ASPxPopupControlBase.PopupAnimationType property is used to invoke a window.

Example

This example demonstrates the following capabilities of the ASPxPopupControl when its popup window is used in modal mode:

- The ShowPageScrollbarWhenModal property allows the browser's vertical scrollbar to be displayed providing end-users with a capability to scroll the document content while the modal popup window is being shown;

- The AutoUpdatePosition property controls whether the popup window's position should be automatically recalculated after performing some popup window resizing or document scrolling operations.

View Example

<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <dxe:ASPxCheckBox ID="cbShowPageScrollbarWhenModal" runat="server" Text="ShowPageScrollbarWhenModal" />
            <br />
            <dxe:ASPxCheckBox ID="cbAutoUpdatePosition" runat="server" Text="AutoUpdatePosition" />
            <br />
            <dxe:ASPxButton ID="btnShow" runat="server" Text="Show">
            </dxe:ASPxButton>
            <dxpc:ASPxPopupControl ID="popup" runat="server" ShowOnPageLoad="true" PopupElementID="ASPxButton1" Modal="True" 
                ShowPageScrollbarWhenModal="False" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" HeaderText="Gladiator" AllowDragging="True" AllowResize="True" EnableAnimation="False">
                <ContentCollection>
                    <dxpc:PopupControlContentControl runat="server">
                        <span class="Gray"><b>Directed by:</b> Ridley Scott<br />
                            <b>Year:</b> 2000</span><br />
                        <br />
                        <div style="font-family: Tahoma; font-size: 10px; color: #666666;">
                            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>
                    </dxpc:PopupControlContentControl>
                </ContentCollection>
               <ClientSideEvents Init="function(s, e) { s.Show(); }" />
            </dxpc:ASPxPopupControl>
            <div style="height: 2000px" />
        </div>
    </form>
</body>
</html>
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {
        if(IsPostBack) {
            popup.ShowPageScrollbarWhenModal = cbShowPageScrollbarWhenModal.Checked;
            popup.AutoUpdatePosition = cbAutoUpdatePosition.Checked;
        }
    }
}
See Also