其他分享
首页 > 其他分享> > XAF 设置弹出窗口的默认大小和样式

XAF 设置弹出窗口的默认大小和样式

作者:互联网

将以下代码添加到Global.asax.csGlobal.asax.vb)文件中的Application_Start方法中。

 https://docs.devexpress.com/eXpressAppFramework/113456/task-based-help/miscellaneous-ui-customizations/how-to-adjust-the-size-and-style-of-pop-up-dialogs-asp-net

 

using DevExpress.ExpressApp.Web.Controls;
using System.Web.UI.WebControls;
//...
protected void Application_Start(object sender, EventArgs e) {
    XafPopupWindowControl.DefaultHeight = Unit.Percentage(50);
    XafPopupWindowControl.DefaultWidth = Unit.Percentage(60);
    XafPopupWindowControl.PopupTemplateType = PopupTemplateType.FindDialog;
    XafPopupWindowControl.ShowPopupMode = ShowPopupMode.Centered;
    //...
}

  

标签:Web,样式,XafPopupWindowControl,默认,Application,using,Percentage,XAF,ShowPopupMode
来源: https://www.cnblogs.com/xyyhcn/p/13451712.html