mvvmcross

iOS black screen and MissingMethodException: Method not found: 'System.Type.op_Equality'

元气小坏坏 提交于 2019-12-08 07:17:27
问题 I'm starting to create an app using MvvmCross. So far I have an version for Android and for WP running. Unfortunately, creating the app for iOS isn't easy. When running the iOS-app in the simulator, I only get a black screen. In MonoDevelop's Application Output is see the following exception: 2013-01-07 10:42:20.506 BestSellersTouch[319:21e03] mvx: Diagnostic: 0.09 Exception masked MissingMethodException: Method not found: 'System.Type.op_Equality'. at Cirrious.MvvmCross.Touch.Views

MvvmCross Monotouch.Dialog binding data to a table

孤人 提交于 2019-12-08 06:07:12
问题 I'm using the MvvmCross Monotouch.Dialog to create my app and need to have a list of elements bound to a list in the VM - what's the best way of going about this? Do I need create an element form scratch to do this or is there some support already there? 来源: https://stackoverflow.com/questions/20719721/mvvmcross-monotouch-dialog-binding-data-to-a-table

Modern approach for UITableView grouping with Mvvmcross

淺唱寂寞╮ 提交于 2019-12-08 05:52:21
问题 I had found several (not too many) different approaches for grouping cells in Xamarin+mvvmcross. I've tried couple of them, but i'm getting a problem: when my real service returns updated collection (with a small delay), binding is not really working and list remains empty. If to run fake service, which returns result instantly, list is filled with data. I've tried several approaches, but no one pushed me forward, so i'm not sure if any code is necessary. Just asking if there's a sample/hints

MvvmCross: How to navigate from regular view to Mvvm viewmodel on Android?

好久不见. 提交于 2019-12-08 05:42:13
问题 I am slowly migrating my app over to MvvmCross on Android. I have not converted all Activities over to ViewModels yet. Therefore, I need to navigate from an Mvvm-controlled Activity to a regular Activity. To do this, I made my own Presenter and intercepted the Show method and did my own StartActivity. That seemed to work. However, now I need to go the other direction and have my regular Activity go back to the original Mvvm-controlled Activity. I tried just doing a StartActivity on the

MVVCross: Pass an enum value as a CommandParameter for Android

孤者浪人 提交于 2019-12-08 05:00:59
问题 I want to pass an enum value as a CommandParameter. My enum is defined as: public enum MyEnum { One, Two } And in my axml I have: local:MvxBind="Click MyCommand, CommandParameter=MyEnum.One" ... local:MvxBind="Click MyCommand, CommandParameter=MyEnum.Two" and MyCommand is defined in my ViewModel as public IMvxCommand MyCommand { get { return new MvxCommand<MyEnum>(myfunction); } } private void myfunction(MyEnum p_enumParam) { switch (p_enumParam) { case MyEnum.One: doSomething1(); break; case

How to modify a constraint using mvvmcross fluentLayout

。_饼干妹妹 提交于 2019-12-08 04:48:32
问题 I've figuratively pulled my hair out on this one. I read from this article "http://gregshackles.com/fluentlayout-2-5/" that FluentLayout now supports constraint editing/removing but it doesn't seem to work on my end. My scenario is to toggle the visibility of a textfield within a UIView when a button is clicked. I have tried the following. A. Modifying the height constraint var height = isVisible ? textfield.Height().EqualTo(0) : textfield.WithSameHeight(textfieldContainer).Multiplier(1 / 3);

Default constructor not found for type MvxPropertyInjector

耗尽温柔 提交于 2019-12-08 04:14:16
问题 I'm using MvvmCross and Xamarin Support libraries in my project and, after I updated MvvmCross from version 4.2.0 to 4.4.0 and Xamarin Support Packages from version 23.3.0 to 25.1.1, I can't execute the project. The app always crash in SplashScreen with error: Default constructor not found for type MvvmCross.Platform.IoC.MvxPropertyInjector. The error occurs in debug mode and release mode. My SplashScreen: [Activity(Icon = "@drawable/ic_launcher", Theme = "@style/InflorTheme.Splash",

MvvmCross - how do I access SQLite in a windows store background task?

流过昼夜 提交于 2019-12-08 04:08:03
问题 I have a store app that uses the mvvmcross sqlite plugin (community edition). This app has a periodic background task that accesses the database to get data to be shown in a live tile. I can't see how I can get access to this database from the background task. I would like to use the mvvmcross sqlite plugin in the background task, but I don't see how to initialize the mvvmcross environment properly. 回答1: If you want to initialize the full MvvmCross framework including all of your app, then

MvvmCross - View not loaded

蓝咒 提交于 2019-12-08 03:20:37
问题 I upgraded an old project to Xamarin.iOS Unified and MvvmCross 4.1. When I run the app, I get the following exception: MvvmCross.Platform.Exceptions.MvxException: View not loaded for MyView My classes look like: MyView : MvxViewController<MyViewModel> {} MvxViewController<T> : UIViewController, IMvxBindingContextOwner, IUIWrappable where T : ViewModelBase ViewModelBase : MvxViewModel {} I suspect I'm missing an interface or something on MyView to enable MvvmCross to operate correctly but I'm

Child containers in MvvmCross IoC

℡╲_俬逩灬. 提交于 2019-12-08 03:16:55
问题 I have a WPF MVVM application that I'd like to refactor to use MvvmCross to support a WPF and Mono for Android implementations. Currently we are using Unity 3.0 for dependency injection and rely on its support for container hierarchies (one main container w/ the main view and view model and services; and for each session with a server a child container with views, view models and services that have a limited lifetime). Can the IoC in MvvmCross support child containers? If not, how would you