⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabpaneldesigner.cs

📁 AJAX 应用 实现页面的无刷新
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.Design;
using System.ComponentModel;
using System.Web.UI;

namespace AjaxControlToolkit
{
    internal class TabPanelDesigner : ControlDesigner
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Justification = "Security handled by base class")]
        public TabPanelDesigner()
        {
        }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2116:AptcaMethodsShouldOnlyCallAptcaMethods", Justification = "Security handled by base class")]
        protected override void PreFilterProperties(System.Collections.IDictionary properties)
        {
            // get the template properties.
            //
            PropertyDescriptor[] templateProps = new PropertyDescriptor[] { (PropertyDescriptor)properties["HeaderTemplate"], (PropertyDescriptor)properties["ContentTemplate"] };

            // Codeplex Issue 10952
            // now we want to add the TemplateContainerAttribute to them.
            // we don't want to do this in the code because the original design had the containers not be an INamingContainer,
            // but TemplateContainerAttribute requires it.
            //
            // so we just add this at design time to make the designer happy, and everything else continues to work as always
            // at runtime.
            //
            foreach (PropertyDescriptor pd in templateProps)
            {
                if (pd != null)
                {
                    properties[pd.Name] = TypeDescriptor.CreateProperty(typeof(TabPanel), pd, new TemplateContainerAttribute(typeof(TabPanel)));
                }
            }
            
            
            base.PreFilterProperties(properties);
        }
    }
}

⌨️ 快捷键说明

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