I can't change the Appearance for the MonthHeaders in my UltraMonthViewMulti.
Trying to change the BackColor doesn't work, but I can change the Font-Color for example, so I am refering to the right object.
MonthAppearance or DayAppearance works fine, but not the MonthHeaderAppearance.
Any ideas?
Hello,
I have been looking into your question and the reason for such behavior is that the control is themed by default. In order to be able to apply a BackColor per your requirement, I could suggest two approaches.
The first one is to set the UltraMonthViewMulti UseOsThemes property to False. This property determines whether or not the control draws using the operating system themes. By default its value is True and because of that, the default operating system theme is applied to the control. This overrides some properties like BackColor. When you choose to turn off themes, what it does it modifies the Base role and sets the ThemedElementAlpha to Transparent:
this.ultraMonthViewMulti1.UseOsThemes = Infragistics.Win.DefaultableBoolean.False; this.ultraMonthViewMulti1.CalendarLook.MonthHeaderAppearance.BackColor = Color.Aquamarine;
The second approach, in case you do not require to turn off themes for the entire control but only on a single Appearance property, is to set the required appearance ThemedElementAlpha property to Transparent:
this.ultraMonthViewMulti1.CalendarLook.MonthHeaderAppearance.ThemedElementAlpha = Infragistics.Win.Alpha.Transparent; this.ultraMonthViewMulti1.CalendarLook.MonthHeaderAppearance.BackColor = Color.Aquamarine;
More information about Removing OS Themes across the Entire Application could be found here.
If you require any further assistance on the matter, please let me know.
Sincerely,Teodosia HristodorovaAssociate Software Developer
Worked. Thanks!
I am glad that you find my suggestion helpful.
Thank you for using Infragistics components.
Regards,Teodosia HristodorovaAssociate Software Developer