This section is intended to give you a broad understanding of the possible ways in which you can change the visual appearance of RadDataPager. There is also comprehensive information about its ControlTemplate. You will need this information if you want to customize its appearance.
The Styles and Templates is part of Telerik UI for WPF, a
professional grade UI library with 140+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
The Styles and Templates is part of Telerik UI for WPF, a professional grade UI library with 140+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
To learn more on how to change the control's default theme, please read the common Setting a Theme (Using Implicit Styles) topic.
There is also another way to obtain the template of a particular visual element. In the
Telerik UI for WPF
installation folder on your PC, go to Themes folder (Themes.Implicit in case you're using) and select the theme that you use in your application. Then drill down to find the respective Telerik.Windows.Controls.Data.xaml file in that directory. From this resource dictionary you can extract any needed resources.
You can modify the look of the RadDataPager by either changing some of the resources exposed by the API, or by modifying its ControlTemplate. In the control template you are allowed to reorder the template parts and to add your own elements. However, when changing the control template you should be careful to include all required parts.
Note that when changing the ControlTemplate you should include all required parts. Even if your code compiles, some of the functionality may be subject to impact due to the omission of the required parts. The required parts are usually marked with the prefix "PART_".
Read the following topics to learn more: