Scrollbar style for combobox

3 posts, 0 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 15 Jan 2015 Link to this post

    I am having trouble changing the scrollbar style for RadCombobox, I have tried several things and nothing works, I am sure i am missing something because it works on another project.

    -- Project in which it is working --
    I am not using implicit style here, i have created new scroll bar style:
    <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">

    I have created combobox style:
    <Style x:Key="RadComboBoxStyle1" TargetType="{x:Type telerik:RadComboBox}">

    and i see the new scroll bar style

    -- not working --
    In the other project i have the same style for scrollbar and same style for Combo box, the only difference is that i am using implicit styles
     <Style TargetType="{x:Type telerik:RadComboBox}" BasedOn="{StaticResource RadComboBoxStyle}">

    the combo box style was suing office manager theme and i commented that out, for the project where it is working if i do not comment that it does not work, but for this project that does not help.

  2. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 15 Jan 2015 in reply to Vikas Link to this post

    I was able to produce the issue in a sample project also, opened a ticket:
    Your ticket ID is: 897482
  3. Masha
    Masha avatar
    355 posts

    Posted 16 Jan 2015 Link to this post

    Hi Vikas,

    The ScrollBars are part of the ScrollViewer control. When you are using implicit styles approach you need to modify the control template of ScrollViewer style where the custom ScrollBar style to be called. Otherwise it has been overwritten in System.Windows.xaml file with the default ScrollBar style.

    I've demonstrated the above approach in the attached project.

    I hope it helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top