我使用Devexpress SimpleButton做了一个自定义按钮,我想像这样改变按钮的颜色,但是它不起作用。
this.Button.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
this.Button.BackColor = Color.Pink;我对设计人员也做了同样的工作,但是现在我想通过编程来完成它,但是它不起作用。提前谢谢。
发布于 2016-11-20 14:33:23
确保将LookAndFeel.Style设置为平面、超平面或Style3D:
this.Button.LookAndFeel.Style = LookAndFeelStyle.Flat;
this.Button.LookAndFeel.UseDefaultLookAndFeel = false;
this.Button.Appearance.BackColor = Color.MediumSeaGreen;
this.Button.Appearance.Options.UseBackColor = true;https://stackoverflow.com/questions/40705140
复制相似问题