DevExpress看明白代码--PanelSettings

    public class PanelSettings : CollapsiblePanelSettings
    {
        public PanelSettings();


        public PanelClientSideEvents ClientSideEvents { get; }                //客户端事件
        public PanelStyles Styles { get; }                                                    //窗口风格
        public PanelImages Images { get; }                                                //窗口图片


        protected override ClientSideEventsBase CreateClientSideEvents();
        protected override ImagesBase CreateImages();
        protected override StylesBase CreateStyles();

    }




namespace DevExpress.Web.Mvc
{
    public abstract class CollapsiblePanelSettings : SettingsBase
    {
        public CollapsiblePanelSettings();


        public CustomJSPropertiesEventHandler CustomJSProperties { get; set; }    //自定义JS特性
        public ScrollBars ScrollBars { get; set; }                                                            //滚动条
        public PanelAdaptivitySettings SettingsAdaptivity { get; }                              //自适应设置
        public PanelCollapsingSettings SettingsCollapsing { get; }                            //折叠设置
        public bool FixedPositionOverlap { get; set; }                                                

        public PanelFixedPosition FixedPosition { get; set; }             

//固定位置 WindowTop WindowBottom WindowLeft WindowRight None

        public DefaultBoolean RightToLeft { get; set; }
        public bool ClientVisible { get; set; }                //客户端可见
        public string DefaultButton { get; set; }            //默认按钮
        public bool Collapsible { get; set; }                    //是否可折叠
        public bool EnableClientSideAPI { get; set; }        //使用客户端编程接口
        protected internal string Content { get; set; }        
        protected internal Action<TemplateContainerBase> ExpandButtonTemplateContentMethod { get; set; }
        protected internal string ExpandButtonTemplateContent { get; set; }
        protected internal Action<TemplateContainerBase> ExpandBarTemplateContentMethod { get; set; }
        protected internal string ExpandBarTemplateContent { get; set; }
        protected internal Action ContentMethod { get; set; }
        protected internal Action<TemplateContainerBase> ExpandedPanelTemplateContentMethod { get; set; }
        protected internal string ExpandedPanelTemplateContent { get; set; }


        public void SetContent(Action contentMethod);
        public void SetContent(string content);
        public void SetExpandBarTemplateContent(Action<TemplateContainerBase> contentMethod);
        public void SetExpandBarTemplateContent(string content);
        public void SetExpandButtonTemplateContent(Action<TemplateContainerBase> contentMethod);
        public void SetExpandButtonTemplateContent(string content);
        public void SetExpandedPanelTemplateContent(Action<TemplateContainerBase> contentMethod);
        public void SetExpandedPanelTemplateContent(string content);
    }
}
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值