Hi,
I have a custom control based off a standard WPF control:
I have also themed standard WPF controls to adopt the current Telerik theme in the Application.Resources of the main app:
Standard WPF controls successfully inherit the Telerik theme, however custom controls based off standard WPF controls do not inherit the Telerik theme.
How can I theme my custom controls to inherit the Telerik theme? I do not want to the change the inheritance of the custom control to a Telerik control to keep the controls as lightweight as possible (the custom controls do not require the additional features of the Telerik controls). I would like to maintain a consistent user experience over the entire solution and theme my custom controls with the Telerik theme.
Kind regards,
Dave.
I have a custom control based off a standard WPF control:
Public Class SendButton Inherits System.Windows.Controls.ButtonI have also themed standard WPF controls to adopt the current Telerik theme in the Application.Resources of the main app:
<ResourceDictionary xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <Style TargetType="{x:Type Button}"> <Setter Property="telerik:StyleManager.Theme" Value="{x:Static telerik:StyleManager.ApplicationTheme}" /> </Style>Standard WPF controls successfully inherit the Telerik theme, however custom controls based off standard WPF controls do not inherit the Telerik theme.
How can I theme my custom controls to inherit the Telerik theme? I do not want to the change the inheritance of the custom control to a Telerik control to keep the controls as lightweight as possible (the custom controls do not require the additional features of the Telerik controls). I would like to maintain a consistent user experience over the entire solution and theme my custom controls with the Telerik theme.
Kind regards,
Dave.