This question is locked. New answers and comments are not allowed.
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.
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
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
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
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:
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.
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
Hello Paul,
Dimitrina
the Telerik team
Please find attached an example.
If you have further questions please do not hesitate to ask us.
I hope this will help you.
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.