ScrollViewer and Telerik Themes

8 posts, 1 answers
  1. Libertad
    Libertad avatar
    53 posts
    Member since:
    Sep 2008

    Posted 11 Nov 2011 Link to this post

    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.
  2. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 30 Nov 2011 Link to this post

    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.
  3. DevCraft banner
  4. Dani
    Admin
    Dani avatar
    848 posts

    Posted 05 Dec 2011 Link to this post

    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 >>
  5. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 05 Dec 2011 Link to this post

    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.
  6. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 05 Dec 2011 Link to this post

    [Multipost]
  7. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 05 Dec 2011 Link to this post

    [Multipost]
  8. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 08 Dec 2011 Link to this post

    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 >>

  9. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 09 Dec 2011 Link to this post

    Many thanks, all working now. It turns out I was setting the style explicitly elsewhere (sorry!) which was interfering with the implicit style.
Back to Top
DevCraft banner