WP - Behaviors, custom xaml namespace parsing crash 1.3.0

juanpaexpeditejuanpaexpedite ESMember
edited December 2014 in Xamarin.Forms

I have downloaded Behaviors https://github.com/corradocavalli/Xamarin.Forms.Behaviors source code, updated the references to Xamarin.Forms.1.3.0.6286-pre4, compiled and referenced to my solution.

Then in Android project everything works fine but in WP8 happens next:

{System.TypeInitializationException: The type initializer for 'Xamarin.Behaviors.EventToCommand' threw an exception. ---> System.MissingMethodException: Method not found: 'Xamarin.Forms.BindableProperty Xamarin.Forms.BindableProperty.Create(System.Linq.Expressions.Expression1<System.Func2<!!0,!!1>>, !!1, Xamarin.Forms.BindingMode, ValidateValueDelegate1<!!1>, BindingPropertyChangedDelegate1<!!1>, BindingPropertyChangingDelegate1<!!1>, CoerceValueDelegate1<!!1>)'.
at Xamarin.Behaviors.EventToCommand..cctor()
--- End of inner exception stack trace ---}
[Inside]
{System.MissingMethodException: Method not found: 'Xamarin.Forms.BindableProperty Xamarin.Forms.BindableProperty.Create(System.Linq.Expressions.Expression1<System.Func2<!!0,!!1>>, !!1, Xamarin.Forms.BindingMode, ValidateValueDelegate1<!!1>, BindingPropertyChangedDelegate1<!!1>, BindingPropertyChangingDelegate1<!!1>, CoerceValueDelegate1<!!1>)'.
at Xamarin.Behaviors.EventToCommand..cctor()}

this happens here: this.LoadFromXaml(typeof(ProductsView));

And the xaml is referenced in the following way:

`xmlns:b="clr-namespace:Xamarin.Behaviors;assembly=Xamarin.Behaviors"

 <Entry Keyboard="Text" BackgroundColor="White" TextColor="Black" Text="{Binding SearchText, Mode=TwoWay}" >
 <b:Interaction.Behaviors>
            <b:BehaviorCollection>
                <b:EventToCommand EventName="Completed"  Command="{Binding SearchTextCommand}" />
            </b:BehaviorCollection>
    </b:Interaction.Behaviors>
 </Entry>`

Any clue about this? Of course in the latest stable version it was working fine.

Posts

Sign In or Register to comment.