public class CustomRadDatePicker : RadDatePicker
static CustomRadDatePicker()
{
DefaultStyleKeyProperty.OverrideMetadata(
typeof(CustomRadDatePicker),
new FrameworkPropertyMetadata(typeof(CustomRadDatePicker))); // also tried RadDatePicker here
}
In the XAML for the controls template I have the following.
<Style TargetType="{x:Type SharedControls:CustomRadDatePicker}">
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type SharedControls:CustomRadDatePicker}">
Now when I use the control on a page it does not use the style I have set up but is using the Telerik style.
I have my derived control and its template set up in a WPF custom control library.
Is it allowed to override the Teleric Style?
-eric