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

RadTextBox scrollbar theming

3 Answers 127 Views
ScrollBar
This is a migrated thread and some comments may be shown as answers.
superold
Top achievements
Rank 1
superold asked on 07 Jul 2008, 03:39 PM
Hi,

I am using the desert theme. The RadListBox is not styled and the RadTextBox scrollbars are not either.

How do I accomplish this on the XML for the style (i have made a copy of the desert theme and have tweaked the XML to my needs.

Thanks,
- jorge

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Jul 2008, 02:00 PM
Hello Jorge Delgado-Lopez,

At this time not all controls have all the themes for the theming suite. We are constantly working towards the improvement of this feature in order to achieve consistency. RadListBox does not have a desert theme in current version and therefore you are not able to observe the Desert ScrollBars. This will be addressed in one of our next releases. Regarding RadTextBox, it uses Microsoft ScrollBars and therefore you are not able to make a theme for them.

Until an official Desert theme for RadListBox is made, I have prepared a sample Desert theme for you, which uses the Desert styled RadScrollBars. Here is how you can create it on your own:
  1. Make a new XML theme file for RadListBox and open it. Open the Desert XML theme file for RadScrollBar.
  2. In the RadListBox XML, search for the <XmlClassSelector>. You will find this tag within <XmlPropertySettingGroup> -> <Selectors> tags.
  3. In the <XmlClassSelector> there is e ElementClass attribute. For those ElementClasses which concern RadScrollBar elements, search for the respective ElementClass in the RadScrollBar Desert theme XML.
  4. Copy the whole <XmlPropertySettingGroup> block whose ElementClass is currently examined from the Desert XML and paste it over the <XmlPropertySettingGroup> in the RadListBox theme.
  5. Do steps 3 and 4 for all ElementClasses in the RadListBox theme concerning RadScrollBar theme.
The more convenient approach is to use our VisualStlyeBuilder in order to make a RadListBox theme with the desired RadScrollBars. However, following this approach, you should make the conditions for the scrolling elements and to set the appropriate properties.

If you have additional questions, feel free to contact me.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
superold
Top achievements
Rank 1
answered on 10 Jul 2008, 07:26 PM
Thanks. 

I have been learning (by debugging since your help is, hm.. a work in progress) the theming mechanism. I wonder if you have help on the complete scheme for the xml? what every property and node does? I have worked with the VisualStyleBuilder but it seems to miss some stuff, so I had to edit the XML directly.

- jorge

0
Nikolay
Telerik team
answered on 11 Jul 2008, 02:49 PM
Hi Jorge Delgado-Lopez,

Thank you for getting back to me.

The xml theme file represents real classes, properties, and collections. The structure of the xml is scheduled for documentation in one of our next releases. For the time being, I will talk to our theme specialist to give you more detailed help on this topic in the next week.

As to our Visual Style Builder, we are planning a major overhaul of this application in the future. Therefore, I would be grateful if you share with me your feedback on this matter - what do you find difficult in using it, what additional capabilities will be of good use to you, what can be made better so to improve the user experience.

If you have additional questions, feel free to contact me.
 

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ScrollBar
Asked by
superold
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
superold
Top achievements
Rank 1
Share this question
or