I have a style that I have to create in code-behind. It has a checkbox that looks like this..
<CheckBox
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsChecked="{Binding Path=DataItem.IsChecked}"
>
</CheckBox>
How do I replicate this in code-behind?