mvxbind

MvvmCross - MvxBind not bind properly

好久不见. 提交于 2020-02-08 11:41:06
问题 In my viewmodelA, I have a property that when the button from my fragmentA.axml is clicked, I do Mvxbind and the screen changes and it shows viewmodelB and also I send an http request and I am getting response as expected. This works exactly how I want it to work. But the problem is, I can seem to show that response in my fragmentB.axml page (someNumber and status). Can anyone help me out with this problem. Thanks!! ViewmodelA.cs: public MvxCommand SomeCommand { get { return new MvxCommand(()

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

In which context ICommand and Local:Mvx are prefered

主宰稳场 提交于 2019-12-11 04:25:53
问题 I'm developing an Android application using Xamarin and MvvmCross. As seen in the layout posted at the bottom of this question I have a TextView and a Button . I want to achieve the following things: Bind the OnClick listener of the button to the onClikCommand method as shown in the code below. When the onClikCommand is called I expect the value of the Text attribute of the TextView to change according to the evaluation of the if-statement. Broadcast the value of the evaluation via a

MvvmCross Custom Event Binding Event Args

白昼怎懂夜的黑 提交于 2019-12-10 18:49:07
问题 I have created a custom binding for the FocusChange event on an EditText using MvvmCross. I can get the event bound and firing, but I can't figure out how to pass the event args. My Custom Binding is this using Android.Views; using Android.Widget; using Cirrious.MvvmCross.Binding; using Cirrious.MvvmCross.Binding.Droid.Target; using Cirrious.MvvmCross.Binding.Droid.Views; using Cirrious.MvvmCross.ViewModels; using System; namespace MPS_Mobile_Driver.Droid.Bindings { public class