in my form, I created a FocusVisualStyle for my control. For my TextBox it work but for Telerik RadDatePicker it doesn't work :(
I want to know how I can change teh FocusVisualStyle of Telerik controls to have the same than the standard controls.
PS: You have to keep in mind that all my forms reside in a DLL which is called by a WinFrom application ;)
Here is part of my xaml:
<telerik:RadWindow.Resources>
<ResourceDictionary>
<ControlTemplate x:Key="FocusTemplate" >
<Rectangle Margin="-3" Stroke="Orange" StrokeThickness="2" RadiusX="2" RadiusY="2" StrokeDashArray="2,1">
<Rectangle.Triggers>
<EventTrigger RoutedEvent="Rectangle.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation To="3" Duration="0:0:1" RepeatBehavior="Forever" Storyboard.TargetProperty="StrokeDashOffset" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Rectangle.Triggers>
</Rectangle>
</ControlTemplate>
<Style x:Key="FocusStyle" TargetType="{x:Type Control}">
<Setter Property="Template" Value="{StaticResource FocusTemplate}"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
</Style>
<Style TargetType="telerik:RadDatePicker">
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
</Style>
<helper:BoolToVisibility x:Key="boolToVisibility" />
<helper:BoolToVisibilityInverter x:Key="boolToVisibilityInverter" />
<helper:BoolInverter x:Key="boolInverter" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="BillingDetails-Fr-Res.xaml"/>
<ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-CustomStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</telerik:RadWindow.Resources>