翻譯|產品更新|編輯:龔雪|2023-06-25 10:45:35.953|閱讀 173 次
概述:DevExpress WinForm?控件日前正式發布了今年第一個重大版本——v23.1,此版本發布了增強了皮膚、矢量圖標以及Data Grid控件功能等,歡迎下載最新版體驗!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
DevExpress WinForms擁有180+組件和UI庫,能為Windows Forms平臺創建具有影響力的業務解決方案。DevExpress WinForms能完美構建流暢、美觀且易于使用的應用程序,無論是Office風格的界面,還是分析處理大批量的業務數據,它都能輕松勝任!
DevExpress WinForm 控件日前正式發布了今年第一個重大版本——v23.1,此版本發布了增強了皮膚、矢量圖標以及Data Grid控件功能等,歡迎下載最新版體驗!
DevExpress技術交流群8:523159565 歡迎一起進群討論
新版本添加了一個全新的WindowsFormsSettings.TrackWindowsAppMode設置,啟用后。您的應用程序可以跟蹤Windows操作系統中使用的默認應用程序模式設置,并且僅在皮膚圖庫中顯示淺色或深色調色板。
可用于DevExpress"WXI", "Basic"和 "Bezier"皮膚。
C#
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); WindowsFormsSettings.TrackWindowsAppMode = DevExpress.Utils.DefaultBoolean.True; Application.Run(new Form1()); }
一旦最終用戶在在微軟Windows中改變系統強調色,DevExpress矢量皮膚會相應改變相關的顏色,激活WindowsFormsSettings.TrackWindowsAccentColor設置可以啟用此選項。
C#
using DevExpress.Utils; using DevExpress.XtraEditors; static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); WindowsFormsSettings.TrackWindowsAccentColor = DefaultBoolean.True; Application.Run(new Form1()); }
您還可以指定自定義的強調色,并動態應用所需的外觀。
C#
DevExpress.XtraEditors.WindowsFormsSettings.SetAccentColor(Color.FromArgb(16,124,65));
"The Bezier"皮膚支持二級強調色,使用WindowsFormsSettings.SetAccentColor2方法指定第二個強調色。
新版本使用自定義背景色(WXI皮膚*)增強了文本輸入和下拉編輯器的渲染。
新版本為所有視圖類型添加了一個新的PrintExportCompleted事件,處理此事件來確定打印或導出視圖數據是否沒有錯誤,使用e.Status事件參數確定操作是否成功、失敗或被取消。
C#
using DevExpress.XtraEditors; using DevExpress.XtraGrid.Views.Base; public Form1() { InitializeComponent(); gridView1.PrintExportCompleted += GridView1_PrintExportCompleted; } private void GridView1_PrintExportCompleted(object sender, PrintExportCompletedEventArgs e) { if(e.Status == GridPrintExportResult.Error) XtraMessageBox.Show( new XtraMessageBoxArgs() { Text = "An unexpected error occurred while exporting data.", Caption = "Error", ImageOptions = new MessageBoxImageOptions() { SvgImage = svgImageCollection1[0], SvgImageSize = new Size(32, 32) } }); }
WinForm查找編輯器包括一個新的多項目選擇選項,使用此功能,您可以在查找中顯示復選框列,并允許用戶使用鼠標或鍵盤選擇多個值。
如果啟用了AllowNullInput選項,并且用戶按Ctrl+Del或Ctrl+0,那么WinForms ColorEdit和ColorPickEdit控件現在將EditValue屬性設置為null(在Visual Basic中沒有)。
新版本添加了一個新的NullColor屬性,這樣您就可以指定一個自定義的空顏色。當用戶重置編輯值時,這個值被分配給編輯器的Color屬性。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網