Xamarin.android 进行绑定ObservableCollection时出错<;字符串>;对于MvxListView
更新最后一个版本的MvvmCross后,我开始出现错误: MvxBind:错误:1679,46视图绑定期间引发异常MvxException:未知序列化描述 此错误仅在此绑定中发生。如果我真的绑定了一个Xamarin.android 进行绑定ObservableCollection时出错<;字符串>;对于MvxListView,xamarin.android,xamarin,mvvmcross,Xamarin.android,Xamarin,Mvvmcross,更新最后一个版本的MvvmCross后,我开始出现错误: MvxBind:错误:1679,46视图绑定期间引发异常MvxException:未知序列化描述 此错误仅在此绑定中发生。如果我真的绑定了一个 ObservableCollection<Class A> observedcollection 一切正常 我有一个MVXListView的模板: <?xml version="1.0" encoding="utf-8"?> <LinearLayout
ObservableCollection<Class A>
observedcollection
一切正常
我有一个MVXListView的模板:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include
layout="@layout/PageCommon_Titlebar" />
<Mvx.MvxListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
android:paddingLeft="12dp"
local:MvxItemTemplate="@layout/listitem_sentences"
local:MvxBind="ItemsSource Sentences, Mode=OneWay; ItemClick SelectSentenceCommand" />
</LinearLayout>
以及列表行的模板:
<?xml version="1.0" encoding="utf-8" ?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/SentenceTextView"
android:layout_width="fill_parent"
android:layout_height="70dp"
android:padding="10dp"
android:textSize="24dp"
local:MvxBind="Text "
/>
</LinearLayout>
这是不对的吗?
对于WP8,我们可以:
<TextBlock Grid.Row="0"
Margin="10,10,10, 3" HorizontalAlignment="Stretch"
Style="{StaticResource PhoneTextTitle2Style}"
Text="{Binding}"/>
提前感谢您的帮助看起来必须在某个地方使用默认(整个对象)绑定进行回归 作为一种解决方法,我知道我今天早上使用的应用程序绑定了:
local:MvxBind="Text ."
我将把这个回归作为一个问题记录下来(除非你抢先告诉我)看起来在某个地方一定有一个带有默认(整个对象)绑定的回归 作为一种解决方法,我知道我今天早上使用的应用程序绑定了:
local:MvxBind="Text ."
<>我将把回归记为一个问题(除非你击败了我)如果回答了你的问题,请考虑将它标记为:如果回答了你的问题,请考虑将它标记为: