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