FAQ Database Discussion Community


MvvmCross IMvxValueConverter fires every time you type a key

c#,android,xamarin,mvvmcross
I have a MvvmCross app and I am using a Date Value Converter as follows: public class DateToStringConverter : IMvxValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo language) { if ((value != null) && (value.GetType() == typeof(DateTime))) { DateTime tmp = (DateTime)value; return tmp.ToString("MM/dd/yyyy"); } return "";...

MVVMCross Android: value with binding not updated

c#,android,binding,xamarin,mvvmcross
I created simple app with Xamarin(Android)+Mvvmcross. I have property Data( type MyData) in my ViewModel. This is my VievModel public class MyViewModel:MvxViewModel { private MyData _data; public MyData Data { get { return _data; } set { _data = value; RaisePropertyChanged(() => Data); } } .... } public class MyData:...

Get local url for MvxStandardTableViewSource ImageUrl

binding,xamarin,mvvmcross
I am trying to bind my viewmodel to the MvxStandardTableViewSource. My binding text: "DetailText MyDetail; TitleText MyTitle; ImageUrl MyImage" My ViewModel public class MyViewModel : MvxViewModel { public string MyDetail { get; } public string MyTitle { get; } public string MyImage { get; } } I got the DetailsText...

Multiple Views for single ViewModel (iOS)

ios,monotouch,xamarin,monodroid,mvvmcross
I am aware that in order to achieve this, I need to create a custom presenter and map the ViewModel to my Views manually by overriding the InitializeViewLookup method. I successfully did this on Android and so far it works fine, but I can't seem to do it on iOS....

Implementing cell reuse for varying height cells in UITableView (iOS8+)

monotouch,mvvmcross
I have a custom cell layout, inheriting from MvxTableViewCell. One of the cell's contained views is a UILabel that supports text wrapping. The wrapping will mean the cells can be of different heights as that is driven by how much text is in each data item. The custom table cell...

Integrating xamarin, CouchBaseLite, MVVMCross and SyncGateway such that View changes with database

xamarin,monodroid,mvvmcross,couchbase-lite,couchbase-sync-gateway
I am working on a xamarin project where i use CouchBase Lite as my Local database. I also want to use MVVMCross library. Could anyone specify where should i include couchbase-Lite library, MVVMCross - hot tuna library(like class library or portable class library or platform specif project) such that view...

Activator with MvvmCross and PCL

xamarin,windows-store-apps,mvvmcross
I have a very strange problem. Currently, I am porting a Windows Universal App (Win 8.1 + WinPhone 8.1) with Prism to a CrossPlattform Solution with MvvmCross. First, a big thanks for all the work with MvvmCross - it is amazing. My problem is now with the System.Activator class. I...

HttpClient - Xamarin Android - MvvmCross

android,xamarin,monodroid,mvvmcross,dotnet-httpclient
I've been developing an application for Android using Xamarin with MvvmCross and everything has been going fine, me and my team were able to develop the solution and this week we decided to make the final adjustments and to test the application in other environments. During the tests I had...

Xamarin MvvmCross ViewModel Validation

validation,mvvm,xamarin,mvvmcross
I'm building my first Xamarin MvvmCross application at the moment and I'm currently looking at validating user input to the view models. Doing a lot of searching around everything (including the MvvmCross team) link to this plugin: MVVMCross.Plugins.Validation This plugin makes use of a very old version of MvvmCross v3....

Binding to Text property ios-unified not working

c#,binding,monotouch,xamarin,mvvmcross
I updated my xamarin ios-project to the unified API (64 Bit support). Everything worked as expected. The project builds and works. But I detected one problem. The binding to UILabel.Text properties won't work anymore. All other bindings are still working (to a UIButton.Hidden property for example). Here is my code:...

Set view element BindingContext - mvvm cross

mvvmcross
Is it possible to set element data context in MvvmCross? Suppose I have: <RelativeLayout> <TextView/> <TextView/> </RelativeLayout> and I'd like to set RelativeLayout data context to viewmodel property. XAML equivalent of: <Grid DataContext="{Binding someProperty}"> <TextBlock/> <TextBlock/> </Grid> ...

Multiple Activities in Android using MVVMCross?

android,xamarin,mvvmcross
I'm working on an Xamarin Android app using MVVMCross and have (only for android) multiple screens/activities I want to start from. I tried to duplicate the SplashScreen, but then none of the Activities boot anymore. Any suggestions how to get multiple Activities with MainLauncher=true workable?...

MvxAdapter Programmatic Binding

xamarin,mvvmcross
I've got a Custom MvxAdapter that is bound to a list of custom objects. I would like to bind my objects to my android resource programmatically in the Custom Adapter, rather than specifying my bindings within the xml. I understand this is possible, as Stuart answered a question on SO...

Hosting and initialising multiple MVVMCross ViewModels for the MvxTabViewController

monotouch,mvvmcross
I need to create a Tab view in iOS. I tried to do this by simply adding a UITabBar to an MvxViewController but I could not get that to work (See this question if interested) I am now trying to go use the approach MVVMCross and Apple seem to push...

MvvmCross - MvxBind:Warning Failed to create target binding for binding Hello for -empty-

c#,android,xamarin,monodroid,mvvmcross
I'm just starting my first Xamarin application and have gotten things setup pretty much as the default configuration of a new solution with very minimal changes. The application compiles fine and deploys to the Virtual Device fine as well. MvxBindingAttributes.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="MvxBinding"> <attr name="MvxBind" format="string"/> <attr...

What's the proper way to implement Fragments in MvvmCross 3.5.1

android,android-fragments,xamarin,monodroid,mvvmcross
After upgrading from 3.5 to 3.5.1 I am getting errors inflating Fragments in my Xamarin.Android project. Unable to start activity ComponentInfo{xxx.xxx/md51537e9497dba76724980c8d1dff85301.MyView}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment Caused by: android.app.Fragment$InstantiationException: Trying to instantiate a class md51537e9497dba76724980c8d1dff85301.LoginView that is not a Fragment What is causing this error?...

MvvmCross SQLite composite key

sqlite,xamarin,mvvmcross
I am trying to learn how to support composite primary keys in MvvmCross using the MvvmCross Community SQLite Plugin. According to this answer it has been supported since at least Oct 2014. Does anyone know how to do this? If I implement a model class with two [PrimaryKey] attributes then...

MvvmCross android binding to fragment

xamarin,monodroid,mvvmcross
is there any way to bind in layout directly to custom fragment? ie: <fragment android:id="@+id/AwesomeFragment" android:layout_width="match_parent" android:layout_height="match_parent" local:MvxBind="CustomTarget PropertyInVM;" class="My.Awesome.Fragment" /> CustomTarget is CustomTargetBinding...

MvvmCross on Xamarin.Mac

osx,xamarin,mvvmcross,xamarin.mac
Actually I'm trying to do something like described in this post MvvmCross for WPF and Xamarin.Mac: is it possible? I'm new to mvvmcross and I'm trying to add it to my Xamarin.Mac Unified project. I can't do it through nuget and have a problem with adding needed references. Could someone...

MvvmCross - Wpf CustomPresenter

wpf,mvvmcross
I'm trying to use a MvxWpfViewPresenter to navigate from one view to another, but i'm having some problems when trying to present it with IMvxWpfViewsContainer. I have registered the IMvxWpfViewsContainer in my App.Xaml.Mvx.cs and added my ViewModel to it. private void DoSetup() { LoadMvxAssemblyResources(); var presenter = new MvxWpfPresenter(MainWindow); var...

No IMvxImageHelper registered

android,imageview,mvvmcross,imageurl
I use mvvmcross and can not bind to image URL. Error: No IMvxImageHelper registered - you must provide an image helper before you can use a MvxImageView <Mvx.MvxImageView p1:id="@+id/imgArticle" p1:layout_width="49dp" p1:layout_height="49dp" p1:layout_marginLeft="5dp" p1:layout_marginTop="5dp" local:MvxBind="ImageUrl Image, Converter = Image" p1:layout_marginBottom="5dp" p1:background="#ffff0000" /> My Model: public Guid Id { get; set; }...

UICollectionView Help What is the Best Way for adding section in MVVMCross Xamarin?

monotouch,xamarin,mvvmcross
How to add Section headers in UICollectionView in Xamarin.iOS and MVVMCross. I just want to ask the best approach. I am searching from 2 days but unable to find any simple approach. My data is List and and Section Contain List My design looks like ...

Policy Handle issues in conjunction with Refit package and Xamarin

c#,monotouch,xamarin,mvvmcross,refit
I have set up my Xamarin core project with a lot of the tips I read from here. I have a simple service that I'm using to see if an entered url for a server is valid: IValidateUrlService I'm trying to use the Polly library to do something like this:...

VS 2015 + universal app + mvvmcross 3.5.0 + sqlite

mvvmcross
I started a new universal app using vs 2015 ctp 5, mvvmcross 3.5.0 + sqllite plugin 3.5.0. I am using the famous N=.... serie of vídeos, especificaly n=12 Collect A Bull as a reference. I created a new pcl Project as a core and a universal app Project(3 projects), added...

MvvmCross Checkbox bind to command android xml

android,user-interface,xamarin,mvvmcross
Is it possible to bind android checkbox to execute a command on change? Could not find an example

MvvmCross Binding your DataModel to your ViewModel

c#,android,wcf,mvvm,mvvmcross
I have written a Windows Store App that I need to port to Android. I am attempting to use MvvmCross and Xamarin in Visual Studio to achieve this. In my Windows App, I would create a screen using XAML and in the textbox etc. set the binding to the field...

Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead

android,mvvmcross,toolbar
I'm having this issue when I applied the toolbar into my app and it crashed when I try to run the app.I used all previous post but no luck. Here is my code : Style.xml <style name="ToolBarStyle" parent="@style/Theme.AppCompat.Light"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> I tried parent="@style/Theme.AppCompat.Light.NoActionBar" but not worked. Toolbar.xmal...

Errors on MvxBind and MvxItemTemplate with a custom control that inherits from MvxListView

android,mvvmcross
I get bind error during the loading of the view, the App keeps running but no visuals in the ListView. I get the following error on the MvxBind: (and something same on MvxItemTemplate) MvxBind: 9.11 Problem seen during binding execution for binding ItemsSource for IsolationCertificate.IsolationPoints - problem TargetInvocationException: Exception has...

MvvmCross RaisePropertyChanged and dot (.) binding

c#,binding,xamarin,mvvmcross
I have a custom binding that accepts entire view model: public class TextViewGroupInfoBinding : BaseBinding<TextView, GroupViewModel> { private IMvxAndroidCurrentTopActivity CurrentTopActivity { get { return ServiceLocator.Current.GetInstance<IMvxAndroidCurrentTopActivity>(); } } public TextViewGroupInfoBinding(TextView androidControl) : base(androidControl) { } public override MvxBindingMode DefaultMode { get { return MvxBindingMode.OneWay; } } protected override void SetValueToView(TextView control,...

NullPointerException while trying to replace a fragment

android,android-fragments,xamarin,monodroid,mvvmcross
I am getting a javga.lang.NullPointerException while trying to replace a Fragment in my Activity. I use a FrameLayout as my host for the fragment to be placed in dynamically based on button clicks. Exception Stacktrace: [AndroidRuntime] Shutting down VM [AndroidRuntime] FATAL EXCEPTION: main [AndroidRuntime] Process: com.data3s.eluzzionnative, PID: 1595 [AndroidRuntime] java.lang.NullPointerException...

UIAlertView popup won't let me swipe up Control Center

ios,xamarin,mvvmcross
I'm currently working on a Xamarin MvvmCross ios app. I have it set to display a UIAlertView popup to inform the user when their internet is disabled (the app requires an internet connection). The problem is that when this popup shows, the user can't swipe up the Control Center to...

How to update ViewModel from View in mvvmcross

xamarin,mvvmcross
I want to update ViewModel from view in mvvmcross, Can i update it ? I have tried messenger pluging but it didnt worked for me.

Show ViewController from inside plugin

ios,plugins,touch,viewmodel,mvvmcross
I'm having trouble to show a view model (created inside the plugin) from inside the plugin. For example, I don't want to show it like a modal view, I want to show it whatever the app is developed. If it is developed using UINavigation, then push it, if it is...

Automapper starting exception in Windows 8.1 Unified project

c#,.net,windows-phone-8.1,automapper,mvvmcross
I have a cross-platform project, using mvvmcross and stuff. Right now, solution consists of Core and Windows Phone projects. Core contains AutoMapper reference, and WP project contains AutoMapper and AutoMapper.WPA references. Application works fine in most cases, but sometimes it throws exceptions like Could not load file or assembly 'AutoMapper.Net4'....

MvvmCross MvxListView and MvxItemTemplate. How do I get a table to display correctly?

c#,android,xamarin,mvvmcross
I am trying to create a data entry table using MvvmCross. Here is what I have: ShipmentView.axml: <?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" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/InputEditText" local:MvxBind="Text Shipment.Shipper"...

linq query 'orderby' using multiple fields at SQLite plugin by MvvmCross doesn't work

linq,sqlite,xamarin,sql-order-by,mvvmcross
The query is the following: var query = from c in _db.Table<Contact>() where c.FirstName.Contains("Alex") orderby c.Priority, c.FirstName, c.LastName select c; Is it a limitation of SQLite, MvvmCross plugin? Should I go with .Syntax as a result? Error CS1936: An implementation of `ThenBy' query expression pattern for source type `Cirrious.MvvmCross.Community.Plugins.Sqlite.ITableQuery<Contact>' could...

MvvmCross custom binding display dialog

android,xamarin,mvvmcross
The goal is to display dialog for user to select date on tap on EditText. I'm truing to implement binding that will show dialog on click. The code is the following: public class EditDateBinding : BindingWrapper<EditText, DateTime> { public EditDateBinding(EditText androidControl) : base(androidControl) { } public override void SubscribeToEvents() {...

AttributedText on MvxTableViewCell

c#,ios,uitableview,monotouch,mvvmcross
I'm trying to set underline on UILabel of MvxTableViewCell. [Register("KittenCell")] public class KittenCell : MvxTableViewCell { private UIImageView MainImage; private UILabel NameLabel; private UILabel PriceValueLabel; private UILabel PriceLabel; public static readonly NSString Key = new NSString ("KittenCell"); private MvxImageViewLoader imageLoader; public KittenCell () { CreateLayout (); InitializeBindings (); } public...

Prevent View from entering the history stack

ios,xamarin,mvvmcross
Having three Views A, B, C with navigation in the the following order: A => B => C where all three views are added to the history stack, the back navigation is in the following order: C => B => A Is there a way to navigate back from View...

Unable to bind custom MvvmCross Views

android,visual-studio,xamarin,mvvmcross
I have created two custom Android Views that I would like to bind to properties in my data model. When I run the app, the properties are definitely not bound and I see errors such as MvxBind:Error:106.21 View type not found - md5b46e1450448c30667827ca3b24581c6a.NavigationListView in my logs. I also originally had...

Getting a switch Checked event to fire in the same way as a Click event with mvvmcross

c#,xamarin,monodroid,mvvmcross
I've got an mvvmcross project for Android in development and have recently changed part of the UI to have a switch instead of a button to remove an item from a wish list. By default, the switch is set to On. In the button version, when the button is pressed,...

Conditional Binding of Properties using MVVMCross

c#,ios,xamarin,monotouch,mvvmcross
What is the best way to implement the following using mvvmcross binding: if (ViewModel.NumberOfUsers > 1) set.Bind (NumberOfUsersLabel).To ("NumberOfUsers + ' Users'"); else set.Bind (NumberOfUsersLabel).To ("NumberOfUsers + ' User'"); Thanks a lot for your help!...

Use PropertyChanged or WeakSubscribe?

xamarin,mvvmcross
What is the best way to track a property change? I have the following concerns why I can't make a decision. - PropertyChanged can prevent garbage collection from collecting a ViewModel that uses its own PropertyChanged event? - Could WeakSubscribe be gone at any moment in time when using to...

Binding to DataModel in MVVMCross

xamarin,monodroid,mvvmcross
I have done the intro tutorial online and it works. My question is how does Mvvmcross know which View to associate with the ViewModel? There is nothing I can see in the code where they reference each other.

How to detect when MvxListView is bound and has loaded its bindings?

xamarin,mvvmcross
I've Inherted MvxListView to my CustomMvxListView where I dos something with the visualization when a child has been added or removed. It works great but can be laggy when many items get bound. Is there a way to detect when Mvx view controls are bound and loaded there first bound...

Xamarin MvvmCross Android Prevent Back Button returning to previous View

c#,android,xamarin,mvvmcross
I'm trying to create a neat solution for the following situation: I've build an app that requires credentials to authenticate the user. Whenever the API wants to reauthenticate the user I would like to force the user back to the login-view. This functionality works great, but when the user presses...

UILabel not wrapping in UITableView until device rotate (iOS8)

monotouch,mvvmcross
I have a custom MvxTableViewCell that is associated with an MvxStandardTableViewSource. That Source is then applied to a UITableView. The custom table cell is defined without any Storyboard or NIB. It is laid out in code and uses AutoLayout. this.searchResultsTable = new UITableView(); this.searchResultsTable.AccessibilityIdentifier = "SearchView_SearchResultsTable"; this.searchResultsTable.TranslatesAutoresizingMaskIntoConstraints = false; this.searchResultsTable.RowHeight...

MVVMCross WPF Value Converter with Tibet Binding Is Not Converting?

wpf,xaml,mvvm,mvvmcross,valueconverter
I am trying to make a value converter which takes a bool and returns the negation of it. The value converter itself is simple: namespace MyProject.Core.ValueConverters { using System; using System.Globalization; using Cirrious.CrossCore.Converters; public class BoolNegationValueConverter : MvxValueConverter<bool, bool> { protected override bool Convert(bool value, Type targetType, object parameter, CultureInfo...

MvvmCross: Binding warning on iOS device

ios,binding,xamarin,mvvmcross
I´ve created my bindings like Stuart told in this Post: MvvmCross - How to bind UIView.Layer.AnyProperty (Xamarin.iOS) to a property on a viewmodel? This works well on simulator, but not on a iOS device. I already added LinkerPleaseInclude.cs but this changed nothing. Binding to BorderWidth works perfectly, binding to BorderColor...

How to get Click event on MvxLinearLayout items\childeren?

xamarin,mvvmcross
How can I get a click event on the items\childeren of a MvxLinearLayout view? I tried View.OnClickListener, but it doesnt get recognized. I tried doing it with ListViews but they do not scale well when they are nested in other ListViews or LinearLayouts (its a big list of list, single...

Registering same singleton for multiple interfaces in IOC

c#,xamarin,mvvmcross
I have a service that needs to be able to handle native assets and attribute types, so I have a core service in my PCL called BaseThemeService which implements interface IThemeService. I need to be able to access some attributes from the core PCL, which is why it implements the...

MVVMCross iOS reselect table row after table refresh

ios,monotouch,mvvmcross
Does anyone know how to make an iOS table view visually re-select a row after the table is refreshed? Here is my current implementation: MainView public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxSimpleTableViewSource(MainTableView, MainInspectionCell.Key, MainInspectionCell.Key); MainTableView.Source = source; var set = this.CreateBindingSet<MainView, MainViewModel>(); set.Bind(source).To(vm => vm.Inspections); set.Bind(source).For(s...

What is the best async loading (view)models strategy when using MVVMCross

xamarin,mvvmcross
I have been working with MVVM for a while (comming from XAML) and I'm using MVVMCross at this moment for a Xamarin project. What is the best (a good) strategy to load data into the ViewModels\Models in a async way? PS: I want to prevent long frozen screens when navigating,...

Cannot resolve SupportFragmentManager in MvxFramentActivity

xamarin,mvvmcross
Following along in the N=26 presentation for fragments, I am running into a problem where the SupportFragmentManager is not able to be resolved: I have MVVMCross and all dependencies (3.5.0), MVVMCross fragment support (3.5.0), and Xamarin Support Library v4 (21.0.3.0) added from NuGet with the references showing up properly in...

How to prevent SupportV4 (Fragment)Tabhost creating its own Fragment at TabChange?

android,android-fragments,xamarin,mvvmcross
I have a problem with the Fragments within the SupportV4 tabhost that loads two Fragments during a single tab change. (Tabhost used; android/support/v4/app/FragmentTabHost) The problem happens because I want to use MVVMCross and its ViewModels, so I need to load ViewModels within the Fragments (that are inside the tab). To...

How can my app fully occupy the entire window after hiding the Navigation Bar & the Status Bar?

c#,android,mvvmcross
I need my app to fully occupy the entire window after hiding the Navigation Bar & the Status Bar. Below is my code where I hide the Status and Navigation Bar. this.Window.DecorView.SystemUiVisibility = Android.Views.StatusBarVisibility.Hidden; this.Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen); this.Window.DecorView.SetFitsSystemWindows(true); Albeit the navigation buttons are gone, the app still does not occupy the...

Mvvmcross ListView SelectedItem setter not reached

listview,xamarin,mvvmcross,selecteditem,unselect
I'm building an app on Android via Xamarin using MvvmCross. I've been struggling on this issue for some time, and I have found a work-around, but I'm pretty sure this isn't the right way to do it. It concerns the selected item in a MvxListView: <Mvx.MvxListView android:id="@+id/productSearchResultListView" android:layout_width="fill_parent" android:layout_height="fill_parent" local:MvxBind="ItemsSource...

MVVMCross Custom Control and Binding

xamarin,monodroid,mvvmcross
I have created a custom control (CustomCard) which is a subclass of the CardView control. I would like to use this control within my project in different places. For example, I may place the CustomCard within an xml layout manually, or I may want the CustomCard to be an item...

iOS Project Fails to Compile

monotouch,xamarin,mvvmcross
When compiling iOS project developed with MvvmCross version 3.5.0, I get the following error: Failed to resolve "Foundation.NSDate Foundation.NSDate::op_Explicit(System.DateTime)" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"...

Xamarin Build failed. An exception was thrown while dispatching a method call in the UI thread

xamarin,mvvmcross,xamarin-studio
Today I upgraded to the latest Xamarin Studio build (Mac 5.9.1.3) and did an immediate build, which worked and successfully deployed to my IOS device. I have made a simple change to a class (added a property) now a build gives: "Build failed. An exception was thrown while dispatching a...

App crashs when re-activating from App-List

windows-phone-8,xamarin,mvvmcross,reload
My WP8-App runs with Xamarin and MvvmCross. When I open my app normal and then go back via the start-button/windows-button on my device and try to re-open my app through the app-list, my app crashs with the following exception: {Cirrious.CrossCore.Exceptions.MvxException: Unable to find incoming MvxViewModelRequest at Cirrious.MvvmCross.WindowsPhone.Views.MvxPhoneViewsContainer.GetRequestFromXamlUri(Uri viewUri) at Cirrious.MvvmCross.WindowsPhone.Views.MvxPhoneExtensionMethods.LoadViewModel(IMvxPhoneView...

MVVMCross MvxDatePicker Binding in Android AXML

android,binding,xamarin,mvvmcross
I have a DatePicker in axml that looks like this <MvxDatePicker ... local:MvxBind="DateTime CustomReminderDate" android:calendarViewShown="false" /> This binds correctly to the ViewModel and displays the right value, BUT when a new Date is chosen using the spinner the new Date is not getting set in the ViewModel bound property. Any...

App crashes when navigating back to MvxTabsFragmentActivity

android,xamarin,mvvmcross
My Apps keeps crashing when navigating back to my MvxTabsFragmentActivity. The MvxTabsFragmentActivity consists of 4 tabs all being the same type of Fragement loading the same View but with different ViewModels. The Fragements show a simple MvxListView with a command attached that opens a new ViewModel. When navigating back the...

MVVMCross, WPF, XAML “Unable to resolve the binding creator - have you initialized Windows Binding”

wpf,xaml,mvvm,binding,mvvmcross
I am trying to make a simple WPF application using MVVMCross that has two views and two view models. All I want to happen is for a button on the initial view to open the second view, using the MvvmCross.BindingEx.Wpf nuget package. Here is the first tag in my XAML...

ViewModel is null during ViewDidLoad

ios,xamarin,mvvmcross
I am getting started with MvvmCross in iOS. public class MainView : MvxTabBarViewController { public override void ViewDidLoad() { base.ViewDidLoad(); var vm = (MainViewModel)this.ViewModel; if (vm == null) return; } } Setting a breakpoint to the line where access the ViewModel, shows me, that ViewModel is null. I can workaround...

What is the difference between Mvvmcross nuget package and Mvvmcross.HotTuna.CrossCore?

monotouch,xamarin,mvvmcross
What is the difference between Mvvmcross nuget package and Mvvmcross.HotTuna.CrossCore? I built touch project using Mvvmcross.HotTuna.CrossCore and MvvmCross.HotTuna.MvvmCrossLibraries packages. Now It's working well. Should I add Mvvmcross nuget package additionally? When I try to add Mvvmcross nuget package, it asks to overwrite Setup.cs file. Should I continue to overwrite?...

Why “removing any who's ViewModel PropertyType is an interface” when creating the MvvMCross View lookup table

xamarin,viewmodel,mvvmcross,lookup-tables
When creating the default View lookup table in MvvMCross, there is a step "removing any who's ViewModel PropertyType is an interface". (http://slodge.blogspot.de/2013/01/overriding-view-lookup-convention-used.html) Why is this step performed? It's clear, that you can't instantiate an interface, but I can navigate to Interface implementing ViewModels with ShowViewModel<IMyViewModel>(), if I write Mvx.Register<IMyViewModel, MyViewModel>()....

MvvmCross Popup Window

c#,xamarin,monodroid,mvvmcross
I would like to have a popup window. Even though I am using MvvmCross, it will strictly run on Android. In Windows Store, you can do the following with xaml: <Popup VerticalOffset="300" HorizontalOffset="200" x:Name="SigPopup" > <Border BorderBrush="{StaticResource ApplicationForegroundThemeBrush}" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" BorderThickness="1"> <StackPanel> <StackPanel Orientation="Horizontal" > <Button x:Name="btnAccept" Content="Accept" Click="btnAccept_Click"/> <Button...

Mvvm cross binding data context

android,data-binding,mvvmcross
I am trying to implement a mvvm cross solution. I am facing an issue with bindings.. I am trying to implement the solution in xamarin.android. Below is my Main Layout page - Main.axml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView local:MvxBind="Text Title/> <Mvx.MvxListView android:id="@+id/SRMTypeList"...

How to Send Brodcast from MVVMCross ViewModel

xamarin,mvvmcross
I want to fire a brodcast event from ViewModel for particular error scenario. How can I access intent and SendBrodcast in ViewModel ?

How to bind MvxTableViewSource to dynamically created ViewModel with MvvmCross and Xamarin.iOS

ios,mvvm,data-binding,xamarin,mvvmcross
I have created table source and want to bind it not to current data context but to another ViewModel which is dynamically created by Controller. //some button click var context = new DynamicViewModel(); var source = new MyTableViewSource(); source.ItemsSource = context.DataItems; //I want this line to work with bindings ...

How to make Parse work with Xamarin's PCL project and MvvmCross?

c#,parsing,xamarin,mvvmcross
I am having a lot of problems when trying to integrate Parse with cross-platform Xamarin app. At first, I was able to create Android app using Xamarin and MvvmCross and integrate with Parse service (done by adding Parse component in Xamarin). When it comes time to develop iOS app, I...