This is a migrated thread and some comments may be shown as answers.
ScrollViewer and Telerik Themes
7 Answers 244 Views
This is a migrated thread and some comments may be shown as answers.
Libertad
Top achievements
Rank 1
Libertad asked on 11 Nov 2011, 04:11 PM
Hi there,
I'm using a ScrollViewer in a RadPane with Expression_Dark theme.
But the ScrollViewer doesn't follow the RadPane theme.
How can I define a style like Expression_Dark for my ScrollViewer?
Thanks.

7 Answers, 1 is accepted

Sort by
0
Paul McNamara
Top achievements
Rank 1
answered on 30 Nov 2011, 06:57 PM
I'd love to know this too. I'd love for my ScrollViewers to have the same style scrollbars are my RadGridViews. I tried explicitly setting the theme on the scroller but I guess the theme is not aware of this type of control.
0
Dani
Telerik team
answered on 05 Dec 2011, 04:35 PM
Hi Majid, Paul,

RadPane will not pass its theme to its content. Please, try setting the theme on the ScrollViewer explicitly, i.e. with an x:Key.

Paul, can you please share more details on your scenario and how you are applying a theme? If this topic is related to usage of ScrollViewer in RadGridView, please post it in the RadGridView forum.

Hope this helps.


Best wishes,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Paul McNamara
Top achievements
Rank 1
answered on 05 Dec 2011, 05:47 PM
I'm creating the scroller in code so it looks like this:

scroller.SetValue(StyleManager.ThemeProperty, StyleManager.ApplicationTheme);

Basically I just want the scrollbar to match other Office_Blue themed controls. I've attached a screenshot showing the problem. The grid at the bottom obviously has the blue scroll bar and also the TextBox in the top left region does (when I set the style explicitly) but the ScollViewer it sits within does not even though the above code is being run.
0
Paul McNamara
Top achievements
Rank 1
answered on 05 Dec 2011, 05:48 PM
[Multipost]
0
Paul McNamara
Top achievements
Rank 1
answered on 05 Dec 2011, 05:48 PM
[Multipost]
0
Accepted
Dimitrina
Telerik team
answered on 08 Dec 2011, 02:49 PM
Hello Paul,

Please find attached an example.

If you have further questions please do not hesitate to ask us.
I hope this will help you.

Kind regards,
Dimitrina
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paul McNamara
Top achievements
Rank 1
answered on 09 Dec 2011, 10:39 AM
Many thanks, all working now. It turns out I was setting the style explicitly elsewhere (sorry!) which was interfering with the implicit style.
Asked by
Libertad
Top achievements
Rank 1
Answers by
Paul McNamara
Top achievements
Rank 1
Dani
Telerik team
Dimitrina
Telerik team
Share this question
or