mvvmcross

Should I choose MvvmLight or MvvmCross on a new project of simple to medium complexity? [closed]

大憨熊 提交于 2019-12-22 15:24:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am trying to find the main difference between MVVMlight and MVVMCrossthose frameworks. I am planning to develop for Android and Windows Phone. I will use the Xamarin framework. (and Xamarin.Forms) The project should be a vehicle tracking application that talks to Azure-run

Is two-way binding supported on MVVMCross for Touch? (besides UITextFields)

陌路散爱 提交于 2019-12-22 13:51:27
问题 I was looking at reasons why my 2-way binding hasn't been working for iOS development using MVVMCross. I'm using UITextViews embedding in custom cells of a tableView. I've looked at this question: How do I do two-way binding to a UITextView control using mvvmcross? and there was mention on how 2-way binding with UITextViews isn't supported in Vnext, but it is in beta with V3 (Hot Tuna). I am using Hot Tuna, and got the binaries approx. June 12th. The following line of code is how I'm binding

MvvmCross detecting RequestClose or back button pressed

。_饼干妹妹 提交于 2019-12-22 10:34:38
问题 I found this topic which says that MvvmCross has no way of detecting RequestClose or use pressing a back button: WP7 MVVMCross Detect RequestClose or BackKeyPressed inside ViewModels backkeypressed-inside-viewmodels Did anything change since May, 2012? Any reasons why this functionality isn't build into MvvmCross? I don't want to re-engineer the wheel it seems like this can be built very simply into Android, WP7, and iOS. If I don't find solution, I will end up building it. 回答1: The advice

MvvmCross Droid MvxListView with Search EditText?

与世无争的帅哥 提交于 2019-12-22 09:46:34
问题 In MvvmCross is it possible to have a Android MvxListView with a Search EditText on top? And how? 回答1: In your View.axml: <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"> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" local:MvxBind="Text SearchString" /> <Mvx.MvxListView android

How can I bind an HTML string to a webview in an Android app?

与世无争的帅哥 提交于 2019-12-22 09:10:17
问题 I currently have a android:TextView which is bound to a string which may or may not contain HTML. <TextView android:text="Medium Text" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:autoLink="all" android:padding="10dp" style="@style/ListItemText" local:MvxBind="Text Answer" /> Somehow I need to be able to display this text with the html rendered. So I thought I would switch the TextView to a WebView

Binding OxyPlot via MVVMCross in Xamarin.Android

十年热恋 提交于 2019-12-22 07:42:28
问题 I have added OxyPlot Android and Core in my Xamarin PCL based project where I am using MVVMCross . I have added the plotview in my xml as follows. But I do not know how to bind this view using MVVMCross. Is there any good example or resources to follow? MyView.xml <oxyplot.xamarin.android.PlotView android:id="@+id/plot" android:layout_width="match_parent" android:layout_height="match_parent" /> MyView.cs public class MyView : MvxFragment<MyViewModel> { public override View OnCreateView

Using MvxGridView in MvvmCross

核能气质少年 提交于 2019-12-22 07:02:59
问题 What I want to do is s simple screen showing multiple items in a Grid. This can on android easily be archived using a GridView. In MvvmCross I guess I have to use MvxGridView to archive the same. Here is my axml: <?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"> <Mvx

How do I bind to `ItemClick` for a `MvxLinearLayout`?

不问归期 提交于 2019-12-22 06:56:05
问题 I have a ScrollView which originally wrapped two MvxListView controls. Having ListView controls in a ScrollView isn't supported by Android though, which makes sense, because they both try to fill the parent height and provide their own scrolling logic. What I want is two unscrollable lists with their full height inside my ScrollView . ListView which MvxListView extends doesn't support this without hacking the height manually. The reason I want this is because I have two separate lists that I

mvvmcross expandablelistview

余生长醉 提交于 2019-12-22 04:07:53
问题 I was just wondering if the functionality of or similar to ExpandableListViews was lurking within the Mvvmmcross framework or is this type of control not applicable with multi platform requirements. The functionality found at http://deapsquatter.blogspot.com/2013/02/mvvmcrossdeapextensions.html is cool but not sure if expand/collapse functionality is available. Any pointers/sample code would be appreciated 回答1: This is about it (I placed it into Deepsqautter's code). After I tidied up the

Xamarin Form Tabbed Page with Mvvmcross

五迷三道 提交于 2019-12-21 23:34:45
问题 I am having a weird issue, Xamarin Forms App works fine when I setup Content page as a startup page. If I set TabbedPage as a startup and same ContentPage as a Children of a TabbedPage then it doesn't display/data-bind ContentPage. No errors. What am I missing any idea? Here is my TabbedPage view model. using MvvmCross.Core.ViewModels; using System.Windows.Input; namespace Company.Mobile.ViewModels { public class TabbedMainViewModel : MvxViewModel { } } XAML: <?xml version="1.0" encoding="utf