RadTextBox scrollbar theming

4 posts, 0 answers
  1. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 07 Jul 2008 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 10 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 10 Jul 2008 Link to this post

    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

  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Jul 2008 Link to this post

    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
Back to Top