I don't know if I'm just missing it, but I can't seem to find the Appearance for the dropdown button on the UltraCalendarCombo control.
On an UltraComboEditor, I just set UseOSThemes to False, and set BackColor of ButtonAppearance. But UltraCalendarCombo doesn't have ButtonAppearance.
I also can't find an appearance for the MonthHeader. Am I blind, or are these missing?
ThanksCampbell
I've found I can set the MonthHeader colour using UltraCalendarLook.MonthHeaderAppearance, but still struggling to find an option for the dropdown button.
Hello Campbell,
Thank you for contacting Infragistics Developer Support.
I have been investigating into the behavior you are seeing in this case, and it does appear that you are correct that the UltraCalendarCombo does not have a Button / DropDownButton Appearance property.
I have been discussing this with our development teams, and the recommendations to style the UltraCalendarCombo’s drop-down button is to either use AppStylist for this and create an .isl with the button styling you are looking for, or use a DrawFilter to modify the color. The following draw filter can help you with this:
public class UltraCalendarComboDrawFilter : IUIElementDrawFilter { public bool DrawElement(DrawPhase drawPhase, ref UIElementDrawParams drawParams) { CalendarDropDownButtonUIElement elem = drawParams.Element as CalendarDropDownButtonUIElement; drawParams.AppearanceData.BackColor = Color.Blue; return false; } public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams) { if(drawParams.Element is CalendarDropDownButtonUIElement) { return DrawPhase.BeforeDrawBackColor; } else { return DrawPhase.None; } } }
Please let me know if you have any other questions or concerns on this matter.
Perfect, thank you.