I am working with your appstyler. Not understanding what exactly a styleset is, what it does, and where it is stored.
How does it relate to the Style Library? How is it intended to be used?
Also, I have a Style Library that I am working with and I like most of it, but I like the grid settings from one of your predefined Style Libraries. I tried to import the grid settings, but could not get it to show up in mine. I looked at the appstyler help files, but still confused. How do I get the grid settings from one Style Library to another? Do you have a step by step I can follow?
One more thing. If I set UseOSTheme on a control, does that override the StyleLibrary settings?
thanks for the help.
A StyleSet is aset of styles. For most application, you probably only need one StyleSet and when you create a new Style Library in AppStylist, the Librarywill automatically contain one default style set.
But, there are case where you may want to style different instances of the same controls differently in the same application. For example, you might have some UltraWinGrids in your application that are large and detailed and others that are small and more simplified. This is where StyleSets come in. You can use the default styleset for one set of grids (say the large complicated one) and a completely different StyleSet for the smaller, simpler grids. All you have to do to make this work is set the StyleSetName on all of the the smaller grid in the application and they will use the information from the StyleSet with that name, instead of the default StyleSet information.
KDuaneS said:Also, I have a Style Library that I am working with and I like most of it, but I like the grid settings from one of your predefined Style Libraries. I tried to import the grid settings, but could not get it to show up in mine. I looked at the appstyler help files, but still confused. How do I get the grid settings from one Style Library to another? Do you have a step by step I can follow?
I don't think there's any built-in functionality to import a StyleSet from one library to another.You might be able to do this by editing the XML directly. Style Library (isl) files are all just XML documents. So theoretically, you could copy and paste from one to another. But this might be more complicated when you factor in things like Resources, to it might not be feasible to do.
Another option might be to start with the existing isl file and delete all the StyleSet you don't want, leaving just the one you do. Then you could add new StyleSets to it and set a new Default.
Still another option would be to load multiple Style Libraries into your application at the same time. The StyleManager.Load method takes an optional name parameter. By default, if you don't specify a name, the Style Library applies to all controls. But if you specify a name, the library applies only to those controls whose StyleLibraryName matches the name you specified.
KDuaneS said:One more thing. If I set UseOSTheme on a control, does that override the StyleLibrary settings?
It depends on the object. But most of the time, themed drawing overrides settings like BackColor and ForeColor. This is why, when you create a new StyleSet, you are prompted to turn off themes.
Mike,
Thanks for the help.
I have built a NEW styleset for the ToolBarManager controls in my style library. I wanted to change some of the colors of the ToolBarManager on my Default styleset, but the canvas is not reflecting the changes. I even deleted the NEW styleset from the library because that appeared to have something to do with it. But I still can't change my ToolBarManager colors in my Default styleset.
Any idea why?
Also, I am not sure I understand your notes on ".....Then you could add new StyleSets to it and set a new Default. ".
What do you mean by "set a new Default"?
There is always one StyleSet within the style library that is designated as the Default StyleSet. By default, this is the initial StyleSet that is created when you create a new library. But you could add a new StyleSet and make it the default. You can control the default StyleSet by going to the "Manage StyleSets" dialog.
You can also specify different default StyleSets for different controls. The ManageStyleSets dialog will allow you to specify that a particular StyleSet should be override the default StyleSet for any particular control type. So maybe changes to the default StyleSet are not applying to the toolbar because there's another StyleSet in your library that is set as the default for toolbars.
I think I understand what you are saying. The only problem with this is the fact that there is only one styleset in the library I am working with and it is the one named "Default". So there is no other styleset to that could be controlling the Ribbon properties, is there? Is it possible that this library is corrupted in a way that will not allow me to change the properities of the Ribbon, even though I can change the properties of other things?
Well, anything is possible, of course. But I've never heard of an isl getting corrupted before. Most likely, there is some other setting at work here. I'm not sure what that is, though.
I recommend that you Submit an incident to Infragistics Developer Support and include your isl file. They can load it up and see if they get the same results and, if so, they should be able to tell you why it's happening.
Well Mike, I thought it would have to be something I did. And I am not sure how it got changed, but I did find the problem.
In the Component Role Settings, UltraToolBarsManager there are Common Component Properties. In that box there is a ResolutionOrder setting that was set for 'Control Only'. I set it to 'default' and all my changes show up now.
This AppStyling can get very deep for a newbie. I am still looking for a tutorial that will explain all the different parts of AppStyler, the Roles and Resources window, and how to setup a simple system of libraries and stylesets.
The biggest part of my confusion right now is not "Can I change this setting?", but "Should I change this setting here or do it somewhere else?"
I appreciate all of your help.