Hi All,
I’m using infragistics controls in my window application. There I’ve number of controls like Ultragrid control, Ultrabutton control and Ultralabel etc.
Now I want to add different styles to these controls using single style sheet.
I’ve already taken one default stylesheet but It’s applying style to all my ultra controls but I don’t want that.
I want different style to each controls.
Thanks in advance
ateeqpasha
I don't know why you are getting an exception there. You should Submit an incident to Infragistics Developer Support
I have the following code:
tab.Appearance.StyleLibraryName = "aa";
After the second row is ececuted, I get a strange error.
"ArgumentNullException was unhandled"
"Value cannot be null"
"Parameter name: key"
If I instead have the following code:
tab.Appearance.BackColor = Color.Firebrick;
tab.ClientAreaAppearance.BackColor = Color.ForestGreen;
Then it works perfect!
So, when I try to set a StyleLibraryName for a UltraTab, then all properties on the tab "throws excpetions"
What is the problem?
Well, if that's all you want, then you should just set UseAppStyling to false on the label.
Once again Big Thanks
Your response is very userful to me.
I've one more small doubt... i'm using default Nautilus.isl style sheet, when i'm loading the style sheet in my window application that time all controls have changed to that style, but only one ultralabel i don't want that sytle throughout the application...
it's possible, let me know...
i'm waiting for your response...
thanks in advance
A Style Library is the entire isl file. The StyleManager.Load method has overloads that allow you to load an isl file into a specific name. If you specify a name, then only controls who's StyleLibraryName matches that name will use that isl file.
StyleSets are sets of style information within the isl file. You can create a style library with many style sets and stylesets can even inherit from other style sets. If you set the StyleSetName on a control, then the control will only use style information from that StyleSet within the isl it is using.