This question is locked. New answers and comments are not allowed.
I want to have the Checked Event Binded to my RelayCommand in the ViewModel. I try to do this via an behavior but every possible implementation I try isn't working.
Do I miss something?
<grid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<StackPanel>
<CheckBox IsChecked="{Binding InCollection}">
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Checked">
<core:InvokeCommandAction
Command="{Binding InCollectionCommand, Mode=OneWay}"
InputConverter="{StaticResource CheckBoxEventArgsConverter}"/>
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</CheckBox>
</StackPanel>
</DataTemplate>
</grid:DataGridTemplateColumn.CellContentTemplate>
</grid:DataGridTemplateColumn>
Thank you in advance.
Perry van der Meeren
Do I miss something?
<grid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<StackPanel>
<CheckBox IsChecked="{Binding InCollection}">
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Checked">
<core:InvokeCommandAction
Command="{Binding InCollectionCommand, Mode=OneWay}"
InputConverter="{StaticResource CheckBoxEventArgsConverter}"/>
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</CheckBox>
</StackPanel>
</DataTemplate>
</grid:DataGridTemplateColumn.CellContentTemplate>
</grid:DataGridTemplateColumn>
Thank you in advance.
Perry van der Meeren