mvvmcross

Fragments in TabLayout do not bind to viewmodel

a 夏天 提交于 2019-12-23 07:03:27
问题 I've been struggling with this for 2 days now and am quite simply stuck. The binding of the fragments simply will not kick in for some reason. The page is shown correctly and the tabs do work fine. I can swipe from tab 1 to 2 and vice versa. The TextView should show some text from the viewmodel. When I debug the constructors of both fragment viewmodels are executed but the properties on the LoginNotificationViewModel (LoginDescription and LastLoginRequestReceivedOn) never fire. I've got a

MvvmCross: Polymorphic list within fragment based tab view

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:33:06
问题 I am trying to create a GUI which uses fragment based TabView. The code is based on the FragmentSample found in MvvmCross tutorials. The number of tabs within the TabView depends on data read from xml file and every tab uses the same fragment. So far everything workes OK. The problems started when I tried to add polymorphic list to the fragment. The code used to create polymorhpic list is basically the same as found in Collection sample(again from MvvmCross tutorials). First i tried to create

MvvmCross: MvxListView with Template error

…衆ロ難τιáo~ 提交于 2019-12-23 03:22:30
问题 I'm trying to use a template with an MvxListView but I get the following error: mvx:Warning: 21.13 using Inflate with a null parent viewGroup is discouraged - see https://github.com/MvvmCross/MvvmCross/issues/507 [0:] mvx:Warning: 21.13 using Inflate with a null parent viewGroup is discouraged - see https://github.com/MvvmCross/MvvmCross/issues/507 02-21 13:23:05.146 I/mono-stdout(30059): mvx:Warning: 21.13 using Inflate with a null parent viewGroup is discouraged - see https://github.com

MonoTouch Exception not getting caught on device

谁说我不能喝 提交于 2019-12-23 02:28:22
问题 I am working on an app which was previously developed without using Storyboards, i.e. all the views were created in code. So as per this link, I am trying to pass a custom MvxTouchViewsContainer to MvxTouchSetup.CreateTouchViewsContainer . protected override IMvxTouchView CreateViewOfType(Type viewType, MvxViewModelRequest request) { UIStoryboard storyboard; try { storyboard = UIStoryboard.FromName(viewType.Name, null); } catch (Exception) { try { storyboard = UIStoryboard.FromName(

OxyPlot in RecyclerView -MVVMCross Xamarin.Android

删除回忆录丶 提交于 2019-12-23 01:12:45
问题 I have the following implementation where I have recycler view, in each view I am trying to display a data using OxyPlot. I could able to see hard coded Plotvalues on the each card, but when I scroll, it is kind of a slow response and app freezes a while. I wonder what I am doing wrong or how to improve this performance issue? MainView.xml <MvxRecyclerView android:id="@+id/myRecyclerView" android:layout_marginTop="10dp" android:scrollbars="vertical" android:divider="@null" android:layout

How to use MvxCachingFragmentActivity?

南楼画角 提交于 2019-12-23 01:08:08
问题 I'm trying to work with navigation with only Fragments, for tombestoning, saving total navigation stack and paramaters, etc. (working with Xamarin.Android and MVVMCross) I think MvxCachingFragmentActivity contains all needed parts. But I can't seem to get it to work and I can't find any example project that works with FullFragging. Closest thing is the example from Cheesebaron https://github.com/Cheesebaron/MvxFragmentsAndHamburger , after removing some comments to load the ViewModels it

How do I do two-way binding to a UITextView control using mvvmcross?

核能气质少年 提交于 2019-12-22 18:31:29
问题 I have a simple view I created using XCode (it's a XIB). It consists of two UITextView controls and a UIButton. I've exposed the UITextView controls as Outlets and given them names. Everything looks good in my View.designer.cs file. I'm creating my binding using this syntax: this.AddBindings( new Dictionary<object, string>() { {lastname, "{'Text':{'Path':'LastName','Mode':'TwoWay'}}"}, {uservin, "{'Text':{'Path':'CarVIN','Mode':'TwoWay'}}"} }); When I move from the lastname UITextView to the

MvvmCross for MonoDroid - How to bind to Menu Item Click event

只谈情不闲聊 提交于 2019-12-22 18:13:57
问题 I have an MvvmCross PCL and a related MonoDroid UI project (pattern copied from following Stuart Lodge's excellent N+1 video series). I want to bind the click of an Action Bar menu item to an ICommand in my ViewModel. I've seen this post but an IMenuItem doesn't appear to have a suitable property to bind to. I'm aware of the SetOnMenuItemClickListener method but (and this is no doubt my lack of understanding) don't know how to leverage this to bind a System.Windows.Input.ICommand to it. Also,

Mvvmcross Binding

社会主义新天地 提交于 2019-12-22 15:55:13
问题 I tried to bind a widget to a viewmodel property but I'm getting an exception MvxBind:Warning: 14.76 Failed to create target binding for binding Signature for Order.ClientSignature [0:] MvxBind:Warning: 14.76 Failed to create target binding for binding Signature for Order.ClientSignature 04-26 21:02:15.380 I/mono-stdout(32490): MvxBind:Warning: 14.76 Failed to create target binding for binding Signature for Order.ClientSignature The widget is courtesy of Al taiar The axml is <SignatureWidget

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

若如初见. 提交于 2019-12-22 15:26:27
问题 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