We're including the NoXaml Telerik DLLs and the Office 2016 theme DLL in our application. We've merged the resources from the various DLLs, including the Themes/System.Windows.xaml resource, as described in Setting a Theme Using Implicit Styles. We've found that this affects the appearance of some non-Telerik controls, such as TextBox, PasswordBox and ScrollViewer. For example, sometimes there are extra borders and sometimes rounded corners are missing (see attached screenshot).
At the bottom of that same page is a short section called Does a Theme Affect All WPF Controls? that confirms that some native WPF controls are affected by Telerik themes. We would like to avoid this. Could you help by answering the following questions:
- How exactly do Telerik themes affect the appearance of native WPF controls, and why? Is this expected?
- What is the best way to avoid this? Setting a Theme on MS Controls says that if we want to style one of the affected WPF controls we should merge the System.Windows.xaml resource dictionary when defining our styles. Will this ensure that everything looks the same as it does without the Telerik theme?
- We've tried removing just the Themes/System.Windows.xaml resource (while keeping the other Telerik resources) and this seems to fix the appearance of native WPF controls. Is this recommended? What side-effects might this have.