Trying to upgrade my app to Prism v7 (preview 3), Xamarin.Forms 2.5.0.121934, and CardView 1.1.1.1.
When I try to navigate to a form containing some cardview controls on it, I am getting this error:
At the time of the exception, the container was:
[mono-rt] Resolving StormFueling.Views.StormFuelingPage,StormFuelingPage (mapped from System.Object, StormFuelingPage)
[mono-rt] Calling constructor StormFueling.Views.StormFuelingPage()
[mono-rt] ---> System.TypeInitializationException: The type initializer for 'CardView.CardView' threw an exception. ---> System.ArgumentException: Default value did not match return type
[mono-rt] Parameter name: defaultValue
[mono-rt] at Xamarin.Forms.BindableProperty..ctor (System.String propertyName, System.Type returnType, System.Type declaringType, System.Object defaultValue, Xamarin.Forms.BindingMode defaultBindingMode, Xamarin.Forms.BindableProperty+ValidateValueDelegate validateValue, Xamarin.Forms.BindableProperty+BindingPropertyChangedDelegate propertyChanged, Xamarin.Forms.BindableProperty+BindingPropertyChangingDelegate propertyChanging, Xamarin.Forms.BindableProperty+CoerceValueDelegate coerceValue, Xamarin.Forms.BindableProperty+BindablePropertyBindingChanging bindingChanging, System.Boolean isReadOnly, Xamarin.Forms.BindableProperty+CreateDefaultValueDelegate defaultValueCreator) [0x0008a] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableProperty.cs:74
[mono-rt] at Xamarin.Forms.BindableProperty.Create (System.String propertyName, System.Type returnType, System.Type declaringType, System.Object defaultValue, Xamarin.Forms.BindingMode defaultBindingMode, Xamarin.Forms.BindableProperty+ValidateValueDelegate validateValue, Xamarin.Forms.BindableProperty+BindingPropertyChangedDelegate propertyChanged, Xamarin.Forms.BindableProperty+BindingPropertyChangingDelegate propertyChanging, Xamarin.Forms.BindableProperty+CoerceValueDelegate coerceValue, Xamarin.Forms.BindableProperty+CreateDefaultValueDelegate defaultValueCreator) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableProperty.cs:132
[mono-rt] at CardView.CardView..cctor () [0x00073] in <1f7204124e6c4b1e9064b0989c5a1a9e>:0
The XAML I am using to set up a cardview looks like this:
Trying to upgrade my app to Prism v7 (preview 3), Xamarin.Forms 2.5.0.121934, and CardView 1.1.1.1.
When I try to navigate to a form containing some cardview controls on it, I am getting this error:
The XAML I am using to set up a cardview looks like this:
Any ideas why I might be getting this all of a sudden? I am trying to run on an Android emulator with API23.
Thanks