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

Changing a style/color of RadControls

3 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam Wawrzyniak
Top achievements
Rank 1
Adam Wawrzyniak asked on 10 Apr 2008, 01:28 PM

Hello,

I have a problem to change the color of the tab or button after it is selected or hovered over. You have very nice green style but this one doesn’t match my company colors. Is there a way to do it or is it the feature you are still working on?

 

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 17 Apr 2008, 10:47 AM
Hello Adam,

The buttons we have in the online examples were conceived before the Microsoft controls appeared. After some consideration we decided that the RadButton* controls would not appear in our final RadControls for Silverlight 2.

Of course we have been thinking about providing the developers with styles (skins) that would make the default buttons match the overall look of the provided skins. These styles as well as the TabStrip control styles would allow you to easily modify the Foreground and Background of the controls by setting the respective properties. This would enable you to make the colours match your company colours without necessarily creating a new ControlTemplate.

The Microsoft Button control comes with the Silverlight SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyId=4E03409A-77F3-413F-B108-1243C243C4FE&displaylang=en

If your question was about the Silverlight 1.0 Button then unfortunately you would have to change the button's template. Presently we are working on the 2.0 controls and have no plans to change or extend the 1.0 controls.

Regards,
Miroslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Adam Wawrzyniak
Top achievements
Rank 1
answered on 17 Apr 2008, 04:33 PM
Hi Miroslav,

Can you tell, if those styles/skins will be available before the final release of RadControls for Silverlight 2 in June/July? 
I don’t want to change the style of your TabStrip dramatically, it would make a big difference though, if there would be a property allowing some color change for the "tab default view", "tab hovered over" and "tab selected". Is it a simple task to accomplish?

Thanks!
Adam Wawrzyniak

0
Accepted
Miroslav
Telerik team
answered on 18 Apr 2008, 08:36 AM
Hi Adam,

The demo controls available on the website are very much like the Silverlight 1.1 alpha controls that were on the site earlier. Since Silverlight is still evolving we decided that releasing something that is sure to change in the future would not be a wise thing to do.

We offer no support for the Silverlight demo controls on the website since technically nothing has been released yet. So the API is there to change as well as the architecture and the styles/templates of the controls.

As for the simple color changes - there are several approaches for that. One way to do this is to add all the needed properties for the colours in the control. This generally works for things like "Foreground" and "Background" but is not very clever. We are looking for a way to easily alter all the colours of the controls in an application - e.g. it would be as simple as changing a Colour resource in your Application.Resources.

Silverlight currently has some issues with that but we hope that they would be resolved by the next release. So yes - you would be able to change the colours but possibly this would not happen at runtime and the change would be application-wide.

You can expect a CTP release in mid-May.

The kind of feedback you give us is very important for us since we would be able to match our goals and your expectations and get the things right from the start. So if there are any other things that you consider important do share them.

Regards,
Miroslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Adam Wawrzyniak
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Adam Wawrzyniak
Top achievements
Rank 1
Share this question
or