<Window.Resources>
<local:BackColorConverter x:Key="backColorConverter"/>
<local:BorderColorConverter x:Key="borderColorConverter"/>
<local:BorderThicknessConverter x:Key="borderThicknessConverter"/>
<local:TextConverter x:Key="textConverter"/>
<Style TargetType="syncfusion:GridRowHeaderCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="syncfusion:GridRowHeaderCell">
<Border x:Name="PART_RowHeaderCellBorder"
Background="{Binding Converter={StaticResource backColorConverter}}"
BorderBrush="{Binding Converter={StaticResource borderColorConverter}}"
BorderThickness="{Binding Converter={StaticResource borderThicknessConverter}}">
<Grid>
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
TextAlignment="Center" >
<TextBlock.Text>
<MultiBinding Converter="{StaticResource textConverter}">
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=syncfusion:SfDataGrid}" />
<Binding Path="RowIndex" RelativeSource="{RelativeSource Mode=TemplatedParent}" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources> |