mvvmcross

Bind MvxBindableTableViewCell's Accessory to boolean

半城伤御伤魂 提交于 2020-01-02 09:52:24
问题 I'm stuck on how to bind the MvxBindableTableViewCell's accessory to a boolean. I have the table's ItemsSource bound to a list in my ViewModel, showing a nice list of clickable items. However I want the cell's accessory (UITableViewCellAccessory.Checkmark) to show only when this object is flagged. By flagged I mean a boolean in the model is set to true. Does anyone know how to bind the cell's accessory? EDIT: I can show the Accessory depending on the model's boolean, but it's not bound.

MvvmCross iOS: How to bind MapView Annotation to jump to another view?

北城以北 提交于 2020-01-02 09:01:20
问题 How can I bind the MapView's annotation to switch to different view when it's callout accessory button is clicked? How do I implement the annotation's CalloutAccessoryControlTapped method? Or what is the best way to do it? Here is my code: [Register("MapView")] public class MapView : MvxViewController { public override void ViewDidLoad() { Title = "Map"; base.ViewDidLoad(); var mapView = new MKMapView(new RectangleF(0, 0, 320, UIScreen.MainScreen.Bounds.Height - 20 - 44)) { MapType =

crash reporting in MonoTouch and MonoDroid

百般思念 提交于 2020-01-02 08:16:06
问题 I'm writing a cross platform application using Mvvmcross, Mono for Android and MonoTouch. In the Java Android app I am porting I used ACRA to provide crash reports and ad-hoc reports. These reports were sent to our server over an HTTP Post. Are there any crash reporting plugins for Mvvmcross? Can the Mono* community recommend any crash reporting libraries? If there doesn't seem to be anything, how are other developers dealing with this? How are they capturing untrapped application exceptions

crash reporting in MonoTouch and MonoDroid

拈花ヽ惹草 提交于 2020-01-02 08:16:05
问题 I'm writing a cross platform application using Mvvmcross, Mono for Android and MonoTouch. In the Java Android app I am porting I used ACRA to provide crash reports and ad-hoc reports. These reports were sent to our server over an HTTP Post. Are there any crash reporting plugins for Mvvmcross? Can the Mono* community recommend any crash reporting libraries? If there doesn't seem to be anything, how are other developers dealing with this? How are they capturing untrapped application exceptions

Why does the gref go too high when I put a MvxBindableSpinner in a MvxBindableListView?

依然范特西╮ 提交于 2020-01-02 08:15:30
问题 I'm developing an app for Android using mvvmcross. In this application I want to have a list which contains a spinner. It looks ok when I test the app on the emulator, but when I scroll it goes out of memory quickly because the gref goes above 2000. I know the gref can go higher on a real device but I still think I must be doing something wrong. BindableList <cirrious.mvvmcross.binding.android.views.MvxBindableListView android:id="@+id/propertyHolder" android:layout_width="fill_parent"

AutoComplete MVVM and Java Castings without using Java.Lang.Object on ViewModel

走远了吗. 提交于 2020-01-02 07:47:31
问题 i've a problem with castings. First i will give an example how to do a custom Adapter for AutoComplete without MVVM in Monodroid: https://github.com/BitStab/Monodroid-Custom-Auto-Complete/blob/master/MonoAndroidApplication1/CustomerAdapter.cs Now i will try this in MVVMCross, but to do it, i would have to extend my ViewModel by Java.Lang.Object. This would destroy the portability of it. I'm searching right now a workaround and cause i'm no expert on mvvm i need help. I started to do some new

MvvmCross 5.4 Crash on app startup with NullRef at ConsoleLogProvider

…衆ロ難τιáo~ 提交于 2020-01-02 04:16:12
问题 I've updated my Xamarin.Android app package MvvmCross from 5.3.2 to 5.4 and app start crashing on startup. Manually I identified that the reason is the linker - I have link SDK libs only option enabled. With the None option it works just fine but makes a twice bigger package. The type initializer for 'MvvmCross.Core.Platform.LogProviders.ConsoleLogProvider' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object 回答1: This is a known bug in

How can I build a targetting pack for Portable Class Libraries?

风流意气都作罢 提交于 2020-01-01 10:13:12
问题 I'm building some code with these portable class libraries at present. I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files

How can I build a targetting pack for Portable Class Libraries?

两盒软妹~` 提交于 2020-01-01 10:13:09
问题 I'm building some code with these portable class libraries at present. I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files

MvvmCross and Xcode Storyboard

时间秒杀一切 提交于 2020-01-01 10:04:22
问题 The storyboard xcode are supported in mvvmcross v3? If yes, how? There is an example? Thanks 回答1: MvvmCross doesn't really fit that well with Storyboards The reason is because Storyboards have some logic in them (eg Segue navigation) which really belongs inside actions in the MvvmCross ViewModels. With that said... if you just want to take advantage of data-binding then you can... just: add the MvvmCross assembly references modify your Storyboard app so it runs some minimal setup code use the