How to bind ListCheckBox to WPF? The situation is such that the width of the checkbox is equal to the length of the text in it (less than the ListBox, and accordingly, in order for the Checked to work, you need to hover over the text and click (made crutches increased the width of the checkbox to the width of the listbox). But I would like to bind them instead of using a crutch.
<ListBox x:Name="listbox_products" Width="200" Height="300" Background="DarkGray" Margin="5,5,5,5" ItemsSource="{Binding GetAvailProductsOnProject}" > <ListBox.ItemTemplate> <DataTemplate> <CheckBox x:Name="CheckBox_CheckProduks" Width="300" IsChecked="{Binding IsSelected}" Content="{Binding Продукт}"/> </DataTemplate> </ListBox.ItemTemplate> </ListBox> 