Removing white background from RadDataPager's NumericElementsPresenter

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    4 posts
    Member since:
    May 2012

    Posted 01 Feb 2013 Link to this post

    We're currently using the 2012 Q1 version of Telerik Controls for WPF (or at least the DLL's version number is 2012.1.326.40). I am trying to style the control with Visual Studio 2012 using the designer by copying the existing control template. The RadDataPager's NumericElementsPresenter has a white background that we would rather have as transparent.

    Unfortunately, every time I try to edit the existing template/style for the NumericElementsPresenter (and set the style tag to point to the resource) all of the buttons disappear and/or it starts using the Office theme instead of Metro. It also appears that the Metro theme colors are not being used, and I do not want to manually replace all of those colors in the template.

    Is there a way to remove the white background from the NumericElementsPresenter and/or successfully create a copy of the current Metro template? Ideally the background would use a templatebinding and inherit the control's background instead.
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 06 Feb 2013 Link to this post

    Hi Kevin,



    Generally styles used in our themes are theme specific. When you predefine the template using Microsoft Expression Blend, you get the style against the default Office_Black theme. As you may know we ship our themes as separate projects and you may get the styles for all components from the Themes folder of your personal installation. If you want to modify the style of RadDataPager against Metro theme you should go to the Metro project within Themes folder and copy the style of RadDataPager to your own project. Once you have the default Metro template in your project you should modify the MainBrush color, which is the brush resource used to paint the Background of RadDataPager.



    Please give it a try and if you need any further assistance do not hesitate to contact us! 



    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top