If I understand you correctly, the way to prevent a certain control from being styled by the Telerik
themes, but preserve the style for the rest of the application, is to set specific Style
for your custom control.
You can extract the default windows styles for the components you are using (in your case TextBox
) and integrate them in the UserControl Resources
. But keep in mind that setting a custom style on any control and not Basing
it on the Telerik
styles will result in completely overriding the theme style for it and applying the specified style.
The other approach is to create a style for the whole control and define its children inside, with references to their native styles (they need to be present as resources as well). This way you can have one style tag in your application resources with a target your control which will style all its instances.
You can also consider to remove the default Telerik theming of the native WPF controls as TextBox, Button, etc. To do that just delete the ResourceDictionary that points to the System.Windows.xaml
You can review this article in MSDN
for default ControlTemplates
of most of the native controls and this thread in Stack Overflow
about extracting a default ControlTemplate
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.