With the Silverlight 4 build, should the RadGridView's elements be able to be styled using implicit styling?
I'm trying to set a style for all GridViewCells so they use a template that gives no visual indication that a specific cell is selected - only the entire row appears to be selected. In my Styles.xaml resource dictionary, I have the following:
<Style TargetType="telerik:GridViewCell"> |
<Setter Property="Template" Value="{StaticResource CustomGridViewCellTemplate}"/> |
<Setter Property="Padding" Value="5,0,3,0"/> |
<Setter Property="BorderBrush" Value="{StaticResource GridLinesFill}"/> |
<Setter Property="BorderThickness" Value="0,0,1,0" /> |
<Setter Property="VerticalContentAlignment" Value="Center" /> |
<Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
</Style> |
As far as I understand, this should apply the style to all GridViewCells in my application - but it's not working.
I have verified that the Styles.xaml file is correctly referenced in my App.xaml file - my other styles are working fine. Also, if I give this style a key and reference it as a static resource on each of my GridViewDataColumns' CellStyle property, it works fine.
Any suggestions or ideas as to why the implicit styling is not working here?
Thanks!
MIchael