Is the a way to select a style by key from styles in app.xaml in the telerik:RadGridView.Resources section
e.g.
<telerik:RadGridView.Resources>
<!-- add xaml to select key GridViewCellType1 -->
</telerik:RadGridView.Resources>
<!-- style in app.xaml -->
<Style x:Key="GridViewCellType1"
TargetType="telerik:GridViewCell">
<Setter Property="FontSize"
Value="14" />
<Setter Property="FontWeight"
Value="Normal" />
<Setter Property="CurrentBorderBrush"
Value="Transparent" />
<Setter Property="BorderBrush"
Value="Transparent" />
</Style>
Can you tell me what do you mean by "select a style by key from styles in app.xaml"? Do you mean that you want to access the Style objects defined in App.xaml? If so, you can use the following syntax:
<telerik:RadGridView.Resources> <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellType1}"> <!-- setters here --> </Style> </telerik:RadGridView.Resources>
Basically, you can access any resource defined in App.xaml using the StaticResource keyword.
In case you want to use different styles for the different cells in the RadGridView control, you can use the CellStyleSelector feature of the columns.