// custom messagebox using System; using System.Drawing; using System.Windows.Forms; using DevExpress.XtraBars.Docking2010.Views.WindowsUI; using DevExpress.XtraBars.Docking2010.Customization; namespace StatTools { public static class MessageBoxService { public static DialogResult ShowMessageBox(Form InOwner, string InCaption, string InMessage, bool bShowCancel = false) { FlyoutAction action = new FlyoutAction() { Caption = InCaption, Description = InMessage }; FlyoutCommand command1 = new FlyoutCommand() { Text = "确定", Result = System.Windows.Forms.DialogResult.Yes }; action.Commands.Add(command1); if( bShowCancel ) { FlyoutCommand command2 = new FlyoutCommand() { Text = "取消", Result = System.Windows.Forms.DialogResult.No }; action.Commands.Add(command2); } FlyoutProperties properties = new FlyoutProperties(); properties.ButtonSize = new Size(100, 40); properties.Style = FlyoutStyle.MessageBox; return FlyoutDialog.Show(InOwner, action); } } }
,相关文章
- DevExpress MessageBox 弹出框 底层类
- 界面控件DevExpress Blazor UI v24.1 - 发布全新TreeList组件
- DevExpress 控件和库-UI控件和组件
- 从点击Button到弹出一个MessageBox, 背后发生了什么(每个UI线程都有一个ThreadInfo结构, 里面包含4个队列和一些标志位)
- Windows8 UI MessageBox In DevExpress
- Angular UI中的$ dialog.messageBox()在哪里?
- WPF UI控件供应商 - ActiPro,Telerik,Xceed,Infragistics,DevExpress等
- Windows8 UI MessageBox In DevExpress
- Mint-UI组件 MessageBox为prompt 添加判断条件
- 实例:用户界面控件Kendo UI vs DevExpress对比评测一