I'm trying to avoid a lot of custom work with themes because all I want to do is change the Header BorderBrush used on various controls. I was hoping I could do this as in the following snippet from a RadCalendar Style in my ResourceDictionary...
And then in my xaml...
<ControlTemplate TargetType="{x:Type telerik:RadCalendar}"> <Grid> <!-- Standard RadCalendar Suff Omitted for brevity --> </Grid> <ControlTemplate.Triggers> <Trigger Property="telerik:StyleManager.Theme" Value="telerik:Office_Black"> <Setter TargetName="Navigation" Property="Background"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF5B5B5B" Offset="1" /> <GradientStop Color="#FF868686" /> <GradientStop Color="#FF0E0E0E" Offset="0.449" /> </LinearGradientBrush> </Setter.Value> </Setter> </Trigger> <Trigger Property="telerik:StyleManager.Theme" Value="telerik:Office_Blue"> <Setter TargetName="Navigation" Property="Background" Value="Blue"> </Setter> </Trigger> </ControlTemplate.Triggers></ControlTemplate>And then in my xaml...
<telerik:RadDatePicker Width="300" telerik:StyleManager.Theme="{Binding TelerikTheme}" CalendarStyle="{StaticResource RadCalendarStyle1}"/>However it doesn't work. Is there anyway to implement something along these lines?
Thanks in advance,
Steve