I think I must be missing something on AppStylist because I can't seem to get it to update the background color of my Windows forms. I've added an InboxControlStyler to the form and tried setting both the Inbox Control and Inbox form background color on the default styleset in the isl file but it doesn't seem to update the form. I've tried leaving the default style set name blank and setting it to Default. All Infragistics controls are properly updated with the styles defined in the isl file which I have attached to this post.
Any help is greatly appreciated.
Hello Frederick,
Thank you for contacting Infragistics Support.
In order to set the style of the in-box component you need to implement two steps:
1. Load the style library you need to your solution. You need to load it before you initialize your form. You may use code like this:
Infragistics.Win.AppStyling.StyleManager.Load(“YourStyleLibraryFileName.isl”);
More about how to load style library file to your application you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/Win_Loading_a_StyleLibrary.html
2. Place InboxControlStyler component to your form.
Please find attached a sample solution implementing this approach.
Please let me know if this is what you are looking for or if I am missing something.
No, as I mentioned, the Infragistics controls are styled properly. I'm already loading the ISL file and I have added the InboxControlStyler to the form. But the style library I attached isn't changing the form's background color even though it sets the background color for Inbox Form as far as I can tell.
Actually it appears I misspoke. Both the form and a usercontrol on the form appear to not be getting their background set. The layout in the app is MDI Parent with ribbon, MDI child (the form in question) with ribbon, usercontrol.
Any suggestions what to look for to diagnose my issue?
I am using the Office 2013 - White isl file as you can see in the attachment to the first post. The user control and mdi child form in question is getting a background of 240, 240, 240. The background property of the control is set to Control as is the background for other panels, etc. The MDI parent has a background of 220, 220, 220. The items in the style library with a background of 240, 240, 240 are:
DayViewAllDayEventAreaDayViewTimeSlotNonWorkingHourScheduleMonthHeaderUltraCalculatorButtonAction
The resources set to that background are:ScrollBar Thumb HotTrackedScrollBar Thumb Pressed
None of them seem like they should be coming into play. If I skip loading the ISL file the background color is still 240, 240, 240.
In order to set the style of the MDI child form as well as to the user control you need to add InboxControlStyler component both to child form and to user control. Please note InboxControlStyler set the styles to any MS stock control in the form you have add it. This is why you need to add InboxControlStyler component to each form or custom control you may need to style.
Please find attached a sample solution implementing this approach and let me know if this is what you are looking for or if I am missing something.
Hi,
Please let me know if you need my further assistance on this matter.
Thank you for using Infragistics Components.