ePOS (POS): Change color of DevExpress button

  • admin
  • Dec. 8, 2016, 9:25 p.m.

This blog post will show you the way to change color of DevExpress button of class SimpleButton.

According to DevExpress support, to apply color to SimpleButton, buttion should have "Flat", "UltraFlat", or "Style3D" style.


var simpleButton = new DevExpress.XtraEditors.SimpleButton();
var buttonColor = System.Drawing.Color.Yellow;
simpleButton.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; 
simpleButton.Properties.Appearance.BackColor = color;


Thanks for reading!