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

Removing white background from RadDataPager's NumericElementsPresenter

1 Answer 41 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 01 Feb 2013, 05:19 PM
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.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 06 Feb 2013, 03:31 PM
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.

Tags
DataPager
Asked by
Kevin
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or