-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
Description
I want to place RadioButton and CheckBox completely in the horizontal center in the DataGrid with DataGridTemplateColumn.
But these is not completely horizontally centered.
So I want you to be completely horizontal centered.

<DataGrid Name="dataGrid" AutoGenerateColumns="False" CanUserAddRows="False" GridLinesVisibility="All">
<DataGrid.Columns>
<DataGridTemplateColumn Header="RADIO">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<RadioButton HorizontalAlignment="Center" IsChecked="{Binding IsChecked}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="CHECK">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsChecked}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>Thanks.
recetarioMDWiki