<ComboBox.ItemTemplate>
<DataTemplate>
<CheckBox
Style="{StaticResource CheckBoxStyle}"
Content="{Binding CDM_VALUE1}" CommandParameter="{Binding}"
Command="{Binding ElementName=MyWindow, Path=DataContext.SetSelectAllCommand}"/>
</DataTemplate>
我在复选框中给出了项目模板
答案 0 :(得分:0)
您需要在XAML代码中添加参数IsChecked
IsChecked="{Binding Path=SetSelectAllCommand, Mode=TwoWay}"
此链接可以帮助您How can I get the checked checkbox values using MVVM?