Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
h0st1le opened this issue Mar 16, 2020 · 0 comments

Comments

@h0st1le
Copy link

h0st1le commented Mar 16, 2020

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant