Tag: mvvmcross

Monocross和Monotouch(xamarin)之间的区别?

我现在正在探索Monotouch(Xamarin)与其他解决方案(如Monocross)的function吗? 所以任何人都可以解释何时使用Monotouch以及何时使用Monocross。 这些框架与本机应用程序开发的优点和缺点是什么?

Android中的MVVMCross Bindings

我正在开发一个跨平台的应用程序,在android中启动它。 我找到了你的MVVMCross项目,我正试图进入它。 现在我对它完全陌生,不知道如何将我的WebService-Results绑定到我的ListView。 这里有一些XAML作为示例,我正在尝试它: xmlns:mobsales=”http://schemas.android.com/apk/res/MobSales.DroidUI” … android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_marginLeft=”5dp” mobsales:MvxItemTemplate=”@layout/listitem_customer” mobsales:MvxBind=”{‘ItemSource’:{‘Path’:’Customer’}}” /> … 看起来像这样 当我徘徊最后两行时,工具提示表示属性未声明。 我真的不知道你是怎么做到的。 你能给我一些建议吗? 我想我必须在我的UI项目的值中写一些xml,对吧? 另一个问题:我怎么能使用AutoCompleteTextViews? 我必须首先编写自己的MvXBindables吗? 任何建议? 🙂

绑定按钮单击ListView模板MvvMCross

我有一个listview,其中包含一个包含按钮的模板。 单击按钮时,我想要触发事件并返回listview行的值,因此我可以使用它将其添加到数据库中。 我的问题是,我不知道如何将我的buttonevent绑定到itemtemplate。 我尝试了一些方法但到目前为止没有成功。 我的清单视图: 我的ItemTemplate: 我的ViewModel: public class ListPresentationViewModel: MvxViewModel { private readonly ISQLService _sqlSvc; public ListPresentationViewModel (ISQLService sqlService) { _sqlSvc = sqlService; MenuCollection = _sqlSvc.MenuItemGetAll (); } private List _menuCollection = new List (); public List MenuCollection { get{ return _menuCollection;} set { _menuCollection = value; RaisePropertyChanged (() => MenuCollection); } } private […]