Hello there,
I have a question.I am using an isl file for the design of objects. (Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath & "\Styls\Metro.isl"))If I now but with a label would like a different color, as defined in the ISL file.
How can I do that?
Thank you
Ronald
Hi Ronald,
You should turn off the UseAppStyling property of the specific control, UltraLabel in your case. Now you can change the color of your label through code using its Appearance property. For example
this.ultraLabel1.UseAppStyling = false;
this.ultraLabel1.Appearance.BackColor = Color.Red;
Please let me know if you have any questions.
Sincerely,
Sahaja Kokkalagadda
yes I know how the do that, but my question is how do I change the code by if I want to have a different color of the label in the form than in the ISL file.
For understandingI stayed at the ISL file Color Brown.But in a form I need a red label. So I just want this to have a label to red. is here a code (vb) für a Change direct in the form
thank you
ronald
Hi Ronald
Please use the following screenshot for your Misc tab settings.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer, Windows Forms
http://es.infragistics.com/
Changing your Label Color using ISL file. You can edit your existing Style Library and add a StyleSet for your UltraLabel.
1. In App Stylist for Windows Forms open your App Stylist Library and select UltraLabel from Component Role Settings under the Roles Tab.2. Under Misc tab you can find Label settings, to select UltraLabel UI Component press 1. you can add the required color for your label here.3. Save your Style library.4. Open your Windows Forms Application and load your file in to application using StyleManager.5. Set the StyleSetName of your UltraLabel.
Refer to the attached sample for questions regarding implementation. If you need further assistance please let me know.
Hi Sahaja,