Hi,
I am evaluateng the WPF suite and datagrid contrib and have 2 questions
1. How do I align the conent of a cell to be centered. Have tried using a style
<datagrid:ThemedDataGrid.Resources>
<Style x:Key="CenterCellStyle" TargetType="{x:Type toolkit:DataGridCell}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type toolkit:DataGridCell}">
<Grid>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</datagrid:ThemedDataGrid.Resources>
But this seem to break the current Theme and cells get different font colour and background for the cells in the selected Row which are set to use the style. Is there a better way of doing this or what am I missing (My XAML skills could be better) ?
2. I have set my grid to "fullrow" selection, how do I disable the column header to change colour for the column that the cell in the row was in ? Would like the header colour to be static and not indicate what particular column was clicked when selecting a Row
Regards
Niclas
I am evaluateng the WPF suite and datagrid contrib and have 2 questions
1. How do I align the conent of a cell to be centered. Have tried using a style
<datagrid:ThemedDataGrid.Resources>
<Style x:Key="CenterCellStyle" TargetType="{x:Type toolkit:DataGridCell}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type toolkit:DataGridCell}">
<Grid>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</datagrid:ThemedDataGrid.Resources>
But this seem to break the current Theme and cells get different font colour and background for the cells in the selected Row which are set to use the style. Is there a better way of doing this or what am I missing (My XAML skills could be better) ?
2. I have set my grid to "fullrow" selection, how do I disable the column header to change colour for the column that the cell in the row was in ? Would like the header colour to be static and not indicate what particular column was clicked when selecting a Row
Regards
Niclas