I have an ultraprogressbar that I segment with "percentsetting" to different colours and turn useAppStyling to False and everything appears perfectly in colour.
Now I embed that same ultraprogressBar into a cell in the grid (MyGrid.Rows(I).Cell(column).EditorComponent = MyProgressBar) and the segment colours do not appear. It is overwritten by the grid appstyle setting. If I turn off our AppStylist then the ProgressBar in the grid appears in colour.
Is there a way without removing the appstyling in the grid to get my progressbar showing in colour? Thanks.
Hi Bob,
Based on your description, it looks like the application style you are using is overriding the FillApperance of the ProgressBar. By default AppStylist settings override any setting in the application. The only way around this is to modify the Style library you are using.
Alternatively, you can also change the Resolution Order so that the property settings in your application will take precedence over the Style library settings. But this approach is not recommended for every scenario as this setting will apply to all the controls in your application.
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
I've tried setting the resolution order "ControlThenApplication" and I still get the same result.
I'm a bit of a newbie when it comes to the AppStyling in Infragistics. Could you point me in the right direction as to what property I would need to modify to allow the progressbar embedded editor to display correctly in the Wingrdi. Thanks. Regards, Maurice.
Your sample has the same issue... NO COLOUR when used with your or my isl file in the grid. Below is what it looks like with my isl file. The colours do not appear in the grid.
My desired effect is to have the percent lines in colour. Not in the light blue that seems to be overriding everything. Thank You.
I’m able to set background color for the ProgressBar in Grid by changing the ResolutionOrder. Below is my Form1 with this color setting. I also added the ProgressBar through code to see if that makes any difference but it is setting the background color as per the ResolutionOrder setting.
One more thing that I forgot to mention is, I also changed the ResolutionOrder of ProgressBar control. This should fix it if not then please send me a sample with this issue reproduced in it along with the steps to reproduce it. I will further look into this issue as soon as I receive the sample.
The picture I sent in my previous post is your program sample with my isl file which produces the issue. Your code colour settings do not take effect with my isl file (previously provide but I've re-attached it again). I cannot find the isl property which is causing my issue. I do have both the grid and ProgressBar resolution order to "ControlTenApplication" in my isl file. Thanks, Bob.
In your isl file you have a default resource setup for the ProgressBarUIElement. Please remove this default resource for ProgressBarUIElement to add custom color to it through your application. When you open your isl file using AppStylist, you can find this resource in the Resources tab of ProgressBarUIElement.
That totally worked! I don't think I would have ever figured that one out. Thanks for the assist.
Regards, Bob.