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
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.
Hello,
An example of setting the StyleLibraryName can be found in our documentation here:
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Styling_Guide_Loading_Multiple_Style_Libraries.html
Let me know if you have any questions.
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.
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.
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.