Skip to content

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

Open
@h0st1le

Description

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>

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions