We are using StyleManager to 'style' our UltraGroupBox controls (Infragistics.Win.AppStyling.StyleManager.Load).
On some Forms I would like to change ForeColor and BackColor of our UltraGroupBox controls, all other Infragistic controls should stay 'in style'.
I can change ForeColor (control.ForeColor = Color.Blue).
But I can not change BackColor: I tried both control.ContentAreaAppearance.BackColor = Color.Red and control.Appearance.BackColor = Color.Red it does not work.
Hello Yuri,
Thank you for the feedback. We are glad that this is working for you. Please do not hesitate to contact us if you have any other questions in the future.
Hi Boris.
Yes, "change only the GroupBox control ResolutionOrder" was exactly what I need.
Thank you Boris and Kaloyan.
Hi Yuri,
Is this working for you?
Are you satisfied with our answers?
Please feel free to let us know if a question about our tool set comes up on your mind.
You probably need to change only the "GroupBox" control "ResolutionOrder" to "ControlThenApplication" as i did in the attached sample. Please take a look at it and do not hesitate to contact us if you still have any other questions with this matter.
This sample models our app:
Form1 is our main window, in Form1_Load I set AppStyling.
button1 and button2 both open Form2 (our patient details), in Form2_Load I am trying to change ForeColor and BackColor.
As you can see: it works OK for MS groupbox, for Infragistics ultragroupbox only ForeColor changed.
If I comment AppStyling.StyleManager.Load in Form1_Load, ultragroupbox changes its BackColor too, but I did not want to remove AppStyling, I only need to change BackColor for ONE ultragroupbox on ONE form Form2_Load.
Please, let me know in you get and opened attached zip solution.