dotnetprojects/WpfExtendedToolkit

CheckListBox does not fire 'ItemSelectionChanged' when using Interaction.Triggers

h0st1le opened this issue · 0 comments

The 'ItemSelectionChanged' event does not appear to ever fire when using Interaction.Triggers. I realize there is now a 'Command' property on the CheckListBox, but I need to perform a conversion on the parameter before sending it to the Command. The example below never fires the 'HandleLayerKeyChangedEventCmd' EventCommand.

<tk:CheckListBox x:Name="_keyLocationsCheckBox" Height="60" Margin="0, 0, 0, 5" 
				 ItemsSource="{Binding OpFtLayers}" 
				 DisplayMemberPath="DisplayName"
				 ValueMemberPath="Name" 
				 SelectedItemsOverride="{Binding KeyLocationLayers, 
				 Mode=OneWay}">

    <i:Interaction.Triggers>
	
        <i:EventTrigger EventName="ItemSelectionChanged">
			
            <cmd:EventToCommand Command="{Binding HandleLayerKeyChangedEventCmd, Mode=OneWay}" 
								 EventArgsConverter="{StaticResource LayerKeyChangedEventConverter}" 
								 EventArgsConverterParameter="{Binding KeyLocationKey}"
								 PassEventArgsToCommand="True" />
								
        </i:EventTrigger>
					
    </i:Interaction.Triggers>
				
</tk:CheckListBox>