Hi,
I have set appstyling on some of my windows forms. I have used style library name and styleset name for all controls so that the theme is not loaded on the UIs where I do not want it to. I have also added dynamic styling using the runtime version of appstylist. But we are facing a problem related to 'Role Selection' not being popup when hovering over controls which have style library specified. Can you let me know if this is intended and whether there are some workaround for the same.
I have attached a sample application of yours in which the Role Selection will not popup for Calculator and ultrabutton2 in the bottom as the have style set specified.
Thanks,
Puneet
Attached image
Hello,
I created a sample using the next version after yours, 2012 Volume 2. It appears in your image that you are using the AppStylist Runtime component. Is this correct? In my sample I am able to see the UI Role popup when hovering over an UltraButton. Keep in mind that neither of these versions are currently maintained. At this time your best option would be to upgrade to our latest.
I also would like for you to please test my sample by using the version utility and converting your project to use 2012 Volume 1. All you need to do is click the button to show the AppStylist Runtime.
Also, could you please clarify what the calculator consists. Which controls and components are used?
You set it the same way you set it on the other controls. You go to the property grid, select the property, and type in a string, just as you did on the label and the grid.
You seem to be confusing StyleLibraryName with the name of the isl file. There is no relation between the two.
StyleLibraryName is a completely arbitrary name that you assign when you load your style library into memory via the StyleManager.Load method. This is only useful if you are trying to load more than one style library into memory at the same time to apply to different controls. Is that what you want? If not, then you should not be setting this property at all, on any controls.
Hi Mike,
We need multiple stylesets and libraries as we are going to use it differently in different forms. We have tried different ways as you mentioned above trying to
1. load the library before AppstylistRuntime is started.
2. Loading the isl file in the appstylist runtime after it is started.
3. Changing names of everything to the same name. etc.
I have attached a sample in which we have set the style library name of few controls. Then we load an isl file with style library specified to the same and then running the AppStylistRuntime but we are never able to change the look of controls for which we specify the style library name. We are only able to change the look for controls for which the style library name is blank. Can you please show how it can be achieved.
Okay, I ran your sample and it doesn't work for me, either. But this is because the StyleLibraryName on the AppStylistRunTime component is still blank. You have to set this property to "DefaultTheme" so that it's editing the same library that your controls are using.
Mike,
Thanks, for your response. We were searching on the appStylistRuntime which pops up when run since we felt that the change could be done in runtime.
Thanks for your patience.
Hi Puneet,
Oh, I see. I knew there must be something about my responses that was unclear, but I couldn't figure out what it was. There's no way to change the StyleLibraryName through the UI, it has to be done in code.
good