DevExpress.XtraEditors.CheckedComboBoxEdit项目在迁移后显示为粗体

时间:2016-05-12 10:40:42

标签: c# winforms devexpress

我已将我的应用程序迁移到DevExpress 15.2。我的DevExpress.XtraEditors.CheckedComboBoxEdit项目以粗体显示。我设置了以下属性。如果我遗漏任何财产,请告诉我。我试过字体属性但selected Item仅更改不是所有项目。

this.cmbTemplates.Location = new System.Drawing.Point(503, 618);
this.cmbTemplates.Name = "cmbTemplates";
this.cmbTemplates.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.cmbTemplates.Properties.SelectAllItemCaption = "Select All";
this.cmbTemplates.Size = new System.Drawing.Size(259, 20);
this.cmbTemplates.TabIndex = 93;

1 个答案:

答案 0 :(得分:1)

试试这个:

cmbTemplates.Properties.AppearanceDropDown.Font = new 
Font(cmbTemplates.Properties.AppearanceDropDown.Font, FontStyle.Regular);