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
Hi,

public void SetFillBrush(Brush color) { _lineDefinition1.Appearance.Stroke = color; _barDefinition1.Appearance.Fill = color; _areaDefinition1.Appearance.Fill = color; _lineDefinition2.Appearance.Stroke = color; _barDefinition2.Appearance.Fill = color; _areaDefinition2.Appearance.Fill = color; }<Style TargetType="telerik:RadGridView"> <Setter Property="telerik:StyleManager.Theme" Value="Office_Blue" /> </Style>