This is a migrated thread and some comments may be shown as answers.

Changing elements' colors with Visual Style Builder

5 Answers 241 Views
Tools - VSB, Control Spy, Shape Editor
This is a migrated thread and some comments may be shown as answers.
fedor
Top achievements
Rank 1
fedor asked on 25 Oct 2006, 02:39 PM
I want to say that you've done a great job and your controls look amazing. Now I'm trying to change one of the RibbonBar themes with your Visual Style Builder and I'm a little bit confused.
I have a hierarchy of Chunk - ElementWithCaptionLayoutPanel - FillPrimitive. If I want to change the BackColor of the chunk item which BackColor property I have to change? The BackColor of the Chunk, the BackColor of the ElementWithCaptionLayoutPanel or the BackColor of the FillPrimitive?

5 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 25 Oct 2006, 03:00 PM
Hello Fedor,
First, thank you for evaluating r.a.d.controls for WinForms.
Each element/item which you see as part of the control hierarchy (Chunk - ElementWithCaptionLayoutPanel - FillPrimitive - etc.) inherits from VisualElement and that's why all these elements/items have common properties. On the other hand the only elements which are painted on the screen are the primitives. That's why if you change the BackColor of the Chunk this will have effect only if the FillPrimitive inherits the BackColor property value from its parent.
Let's say that you would like all items which are placed inside the chunk painted with red BackColor. You go to the Chunk item and set its BackColor property to Red. Whenever you would like some specific child item painted with different BackColor (for example blue) you go to this particular item (or primitive) and set its BackColor to blue. This will break the inheritance and this item won't get its BackColor property value (red) from its parent. Also its child items will start inherit the blue BackColor property value from this item.
I hope this information helps you understand better how our property mechanism works.

Regards,
Chris
the telerik team
0
Bryan Brannon
Top achievements
Rank 2
answered on 04 Jan 2007, 04:29 PM
I am a current subscriber to your Client.net.  Can I download your VisualStyleBuilder for some design artist on my team to be able to generate the style and send me the XML file.  I do not want to allow them to have to install the entire controls plus we only have a limited number of developers licenses.

I understand you can download the eval copy but you have to install all the controls.  I would like her to just be able to install the VSB if possible.  If not, can this be in the future?
0
Chris
Telerik team
answered on 04 Jan 2007, 05:08 PM
Hello Bryan,
Currently we do not offer the VisualStyleBuilder application as a separate file to download but you can feel free to download and install r.a.d.controls for WinForms and then you can send only the VSB application to your design artist.
It's very easy to get all the required files as they are all placed in the "bin" subfolder under the folder in which you have installed the WinForms controls (e.g. "C:\Program Files\telerik\r.a.d.controls for WinForms Q4 2006\bin").
Just zip the following files:

VisualStyleBuilder.exe
VisualStyleBuilder.Design.dll
Telerik.WinControls.dll
Telerik.WinControls.UI.dll
Telerik.WinControls.Docking.dll
TelerikCommon.dll
RadControlSpy.dll

and send them to your design artist.

Greetings,
Chris
the telerik team
0
Bryan Brannon
Top achievements
Rank 2
answered on 08 Jan 2007, 02:36 PM
That works well, thanks!
0
jezzicaz789 jezzicaz789
Top achievements
Rank 1
answered on 23 Jan 2010, 05:42 PM

Hi l!
I've just visited this forum. Happy to get acquainted with you. Thanks.

__________________
<admin>LINK REMOVED - against Forum policies</admin>

Tags
Tools - VSB, Control Spy, Shape Editor
Asked by
fedor
Top achievements
Rank 1
Answers by
Chris
Telerik team
Bryan Brannon
Top achievements
Rank 2
jezzicaz789 jezzicaz789
Top achievements
Rank 1
Share this question
or