Updated Catel from 5.12.4 to 5.12.15: runtime error on every EventToCommand line inViews

42 Views Asked by At

After updating Catel from 5.12.4 to 5.12.15 every view with xaml parts like this:

<i:Interaction.Triggers>
    <i:EventTrigger EventName="...">
        <catel:EventToCommand Command="..." />
    </i:EventTrigger>
</i:Interaction.Triggers>

causes runtime error: An instance of type "EventToCommand" cannot be added to a collection of type "TriggerActionCollection". Only items of type 'T' are allowed.

1

There are 1 best solutions below

3
Geert van Horrik On

This is caused by the change to move to the (actively maintained) Microsoft.Xaml.Behaviors package. Please use the correct package moving forward and all should be good.