tabanimationextender.cs

来自「jquery+prototype+插件+源码+资料 非常的东西」· CS 代码 · 共 51 行

CS
51
字号
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Globalization;
using AjaxControlToolkit;

[assembly: System.Web.UI.WebResource("MattBerseth.WebControls.AJAX.TabAnimationControl.TabAnimationBehavior.js", "text/javascript")]

namespace MattBerseth.WebControls.AJAX.TabAnimationControl
{
    /// <summary>
    /// 
    /// </summary>
    [Designer("MattBerseth.WebControls.AJAX.TabAnimationControl.TabAnimationExtenderDesigner, MattBerseth.WebControls.AJAX")]
    [ClientScriptResource("MattBerseth.WebControls.AJAX.TabAnimationControl.TabAnimationBehavior", "MattBerseth.WebControls.AJAX.TabAnimationControl.TabAnimationBehavior.js")]
    [RequiredScript(typeof(AnimationScripts))]
    [RequiredScript(typeof(CommonToolkitScripts))]
    [RequiredScript(typeof(AnimationExtender))]
    [TargetControlType(typeof(TabContainer))]
    [ToolboxItem("System.Web.UI.Design.WebControlToolboxItem, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    public class TabAnimationExtender : AnimationExtenderControlBase
    {
        // Animations
        private Animation _activeTabChanged;

        /// <summary>
        /// 
        /// </summary>
        [DefaultValue(null)]
        [Browsable(false)]
        [ExtenderControlProperty]
        public Animation OnActiveTabChanged
        {
            get { return this.GetAnimation(ref this._activeTabChanged, "OnActiveTabChanged"); }
            set { this.SetAnimation(ref this._activeTabChanged, "OnActiveTabChanged", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPreRender(System.EventArgs e)
        {
            base.OnPreRender(e);

            this.ResolveControlIDs(this._activeTabChanged);
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?