Today I have changed all my interaction triggers from http://schemas.microsoft.com/expression/2010/interactivity to http //schemas.microsoft.com/xaml/behaviors. Now my problem is, that no selectionChanged
event was firing in the view model. My datasource is the view model.
My code:
<ComboBox Name="CBGL" ItemsSource="{Binding Path=Troughs}"
DisplayMemberPath="TroughNumber" SelectedValuePath="Id"
SelectedValue="{Binding Model.Trough}" Width="173">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding CBGLRegionChangedCmd}" />
</i:EventTrigger>
</i:Interaction.Triggers>
If someone changes the selection, CBGLRegionChangedCmd
is not firing.
The code from the view model:
CBGLRegionChangedCmd = new MyICommand(InvokeCommandAction_Changed);
If I undo the update all is working fine...