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?
See sample below.
Let me know if you have any questions.
I feel you did not read my question correctly. The role selection menu is still not popping if the library and stylesetname are specified for the control. I have modified your sample to show the same. We are using infragistics12.1 in here.
This is correct behavior.
It's very hard for me to explain why because the StyleLibraryName you are using here is named "Default". That makes things very confused, because it's hard to distinguish the actual default (nameless) style library, from the one you have named "Default". But they are two different things.
When you load up the AppStyleRunTime dialog, it loads the current in-memory style library. This style library has no name, it's just the default one. Your controls are looking for a StyleLibary that was loaded into memory using a specific name, which happens to be "Default", but no such library exists in memory.
The controls on the form will only be affect by a style library named "Default", but the AppStylistRunTime is editing the nameless default library. So no RoleTips appear nothing you do in the AppStylistRunTime dialog will affect these controls.
This is very easy to fix. If you want to edit a named style library, then set the StyleLibraryName on the AppStylistRunTime to the same name.
How do we specify the StyleLibraryName on the AppStylistRuntime? I have now changed the StyleLibraryName to MyLibrary.isl and tried loading the MyLibrary.isl file in the AppStylistRuntime. But the controls did not respond. Also I checked it without the extensions.
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.
good
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.
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.
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.
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.