Hi,
I use MVVM and command binding to click event. The problem is I have double checkbox displayed and cound find solution to get rid off it and keep command binding.
<syncfusion:CheckListBox
ItemsSource="{Binding UpsOptionsCollection, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
SelectedItems="{Binding CheckedOptions, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
<syncfusion:CheckListBox.Resources>
<Style TargetType="syncfusion:CheckListBoxItem">
<Setter Property="IsChecked" Value="{Binding IsChecked, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
</Style>
</syncfusion:CheckListBox.Resources>
<syncfusion:CheckListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Width="250" />
</ItemsPanelTemplate>
</syncfusion:CheckListBox.ItemsPanel>
<syncfusion:CheckListBox.ItemTemplate>
<DataTemplate>
<Border>
<StackPanel>
<CheckBox Content="{Binding Name}"
IsChecked="{Binding IsChecked, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction Command="{Binding DataContext.GetUpsOptionsCommand, RelativeSource={RelativeSource AncestorType=syncfusion:CheckListBox}}" CommandParameter="{Binding}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</CheckBox>
</StackPanel>
</Border>
</DataTemplate>
</syncfusion:CheckListBox.ItemTemplate>
</syncfusion:CheckListBox>
Br,
Jakub