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

Scrollbar style for combobox

2 Answers 503 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 15 Jan 2015, 06:11 PM
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.
 <telerik:StyleManager.Theme>
                                    <telerik:Office_BlackTheme/>
                                </telerik:StyleManager.Theme>





Thanks
vikas

2 Answers, 1 is accepted

Sort by
0
Vikas
Top achievements
Rank 1
answered on 15 Jan 2015, 08:14 PM
I was able to produce the issue in a sample project also, opened a ticket:
Your ticket ID is: 897482
0
Masha
Telerik team
answered on 16 Jan 2015, 09:37 AM
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.

Regards,
Masha
Telerik
 

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.

 
Tags
ComboBox
Asked by
Vikas
Top achievements
Rank 1
Answers by
Vikas
Top achievements
Rank 1
Masha
Telerik team
Share this question
or