Hi,
I've got some problems with the GridView style:
1) How can I change the background of a RowIndicator. I tried this but it doesn't works:
I've got some problems with the GridView style:
1) How can I change the background of a RowIndicator. I tried this but it doesn't works:
| <Style x:Key="{x:Type telerik:GridViewIndicatorCell}" TargetType="telerik:GridViewIndicatorCell"> |
| <Setter Property="Background" Value="{StaticResource GridViewHeaderCellBackgroundBrush}" /> |
| </Style> |
2) How can I change the height of the columns header? This is not working correctly:
| <Style TargetType="telerik:GridViewHeaderCell"> |
| <Setter Property="Height" Value="50" /> |
| </Style> |
3) I've tried this:
| <Style TargetType="{x:Type telerik:GridViewCell}"> |
| <Setter Property="OverridesDefaultStyle" Value="False" /> |
| <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" /> |
| <Style.Triggers> |
| <Trigger Property="Validation.HasError" Value="True"> |
| <Setter Property="BorderThickness" Value="1" /> |
| <Setter Property="BorderBrush" Value="Red" /> |
| <Setter Property="ToolTip" Value="{Binding RelativeSource= {RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" /> |
| </Trigger> |
| </Style.Triggers> |
| </Style> |
but this column doesn't work anymore after that (Cell is empty):
| <telerik:GridViewColumn> |
| <telerik:GridViewColumn.CellStyle> |
| <Style TargetType="{x:Type telerik:GridViewCell}"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type telerik:GridViewCell}"> |
| <Border Background="{TemplateBinding Background}" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| BorderThickness="{TemplateBinding BorderThickness}"> |
| <Button Style="{StaticResource GridImageButton}" |
| Click="Delete_Click"> |
| <Image Source="{StaticResource Delete}" /> |
| </Button> |
| </Border> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </telerik:GridViewColumn.CellStyle> |
| </telerik:GridViewColumn> |
Do you know why?
Thanks,
Xavier.