首页 > 代码库 > Windows8 UI MessageBox In DevExpress
Windows8 UI MessageBox In DevExpress
// 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); } }}
Windows8 UI MessageBox In DevExpress
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。