mvvmcross

MvvmCross 4.1 upgrade issue IsFragmentCacheable not found

爱⌒轻易说出口 提交于 2019-12-11 12:16:55
问题 Getting a compilation error after upgrade to mvvmcross 4.1 in Linker task: The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Boolean MvvmCross.Droid.Shared.Attributes.MvxFragmentAttributeExtensionMethods::IsFragmentCacheable(System.Type)' (defined in 'MvvmCross.Droid.Support.V7.Fragging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'MvvmCross.Droid.Support.V7.Fragging, Version=1.0.0.0,

MvxBind:Error: View type not found - mvvmemiextensions.EmiDatePicker

ε祈祈猫儿з 提交于 2019-12-11 10:49:46
问题 I'm using EmiDatePicker but, at open the View a this Error occurs: MvxBind:Error:452,00 View type not found - mvvmemiextensions.EmiDatePicker 03-13 16:31:21.439 I/mono-stdout(20760): MvxBind:Error:452,00 View type not found - mvvmemiextensions.EmiDatePicker [0:] MvxBind:Error:452,00 View type not found - mvvmemiextensions.EmiDatePicker At AXML... <mvvmemiextensions.EmiDatePicker local:MvxBind="Value SomeDateValue" android:layout_width="fill_parent" android:layout_height="wrap_content" android

Tabs with MVVMCross 6.2+

耗尽温柔 提交于 2019-12-11 10:22:11
问题 I have created simple Xamarin Android app with MVVMCross 6.2+ and trying to create tab layout properly. Right now I get only one (the last registered tab) on screen, but after rotation (recreation) there are all three of them (as it should be). What's wrong? What have I missed? How to fix it? Thanks in advance for your help. MvvmCrossTabs.Core HomeViewModel.cs using System.Collections.Generic; using System.Threading.Tasks; using MvvmCross.Commands; using MvvmCross.Logging; using MvvmCross

Custom Navigation Controller in an MVVMCross App

痴心易碎 提交于 2019-12-11 09:15:58
问题 I'm working on an MVVMCross based app and need to use a custom UINavigationController but I'm struggling to see how I can do this as I can't see the point at which the navigation controller is created. Can anyone give any guidance on how a custom UINavigationController can be used within MVVMCross 回答1: You would do that in your own Presenter by overriding CreateNavigationController : protected override UINavigationController CreateNavigationController(UIViewController viewController) { var

VS2012 error setting references to mvvmcross for WP8

旧城冷巷雨未停 提交于 2019-12-11 09:10:16
问题 I'm following this tutorial for mvvmcross and I'm trying to get the "Windows Phone UI" project working. However when I try to set references to the mvvmcross binaries, Visual Studio (2012 Premium) displays an error: a reference to a higher version or incompatible assembly cannot be added to the project. I am using the mvvmcross binaries from 2013_01_28 as specified in the tutorial and have installed Windows Phone SDK (7.1 and 8.0). I have tried with both WP7.1 and WP8 projects but same error

HttpWebRequest BeginGetRequestStream callback never called

独自空忆成欢 提交于 2019-12-11 08:52:10
问题 In my Xamarin application I use HttpWebRequest class to send POST messages to the server (I use it because it is available out-of-the box in PCL libraries). Here is some request preparation code: request.BeginGetRequestStream (asyncResult => { Mvx.Trace ("BeginGetRequestStream callback"); request = (HttpWebRequest)asyncResult.AsyncState; Stream postStream = request.EndGetRequestStream (asyncResult); string postData = jsonConverter.SerializeObject (objectToSend); Mvx.Trace ("Posting following

Cannot resolve current top activity while showing viewmodel using mvvmcross

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:48:00
问题 I'm implementing a custom presenter in my Mvvmcross application. What I wanted to accomplish is: regular navigation and fragment navigation. In my main activity, I managed to embed several fragment views based on this example: https://github.com/i486dx400/MultiRegionPresenter while the fragments are working, I also wanted to show regular activities, that aren't hosted as a fragment. Therefor I extended this presenter as shown in this snippet: https://gist.github.com/JelleDamen/7003702 The

MvvmCross - Change Hamburger menu to back button

感情迁移 提交于 2019-12-11 08:37:04
问题 I'm using the XPlatformMenus sample Android project available at https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenus What I want to do is, when the user navigates to the InfoFragment, that the Hamburger menu icon change to a back arrow and when pressed the app navigates to the previous view/fragment, which in this case is the HomeFragment. I've seen a method called ShowBackButton on the MainActivity, but it is not called from anywhere, so I've added it's code to the

Mvvmcross Android Togglebutton binding doesn't seem to work in release mode

喜夏-厌秋 提交于 2019-12-11 08:22:37
问题 I have a strange behaviour in the sense that an app which works perfectly fine in debug mode behaves differently when in release mode. More in particular, I use a couple of togglebuttons with dual property binding for which the binding works when compiled and deployed for debug while it doesn't anymore when in release mode. All other used widgets, including normal buttons seem to work just fine. AXML snippet for one of the buttons here included: <ToggleButton android:layout_width="match

Error when making bind ObservableCollection<string> for a MvxListView

可紊 提交于 2019-12-11 07:50:56
问题 After update MvvmCross for the last version, i started having an error: MvxBind:Error:1679,46 Exception thrown during the view binding MvxException: Unknown serialized description. This error occurs only in this bind. If i do bind for a ObservableCollection<Class A> everything works fine. I have a template for a 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"