Questions tagged mvvmcross

Explore the latest questions and answers asked by our top developers.

Close and Navigate compilation error after updating to 8.0.2 from 5.x when trying to return bool from navigation

return await NavigationService.Navigate<LocationDisclosureViewModel, bool?>(); no longer valid. Get a compilation error stating it must be a reference type. The type ‘bool?’ must be a reference type in order to use it as parameter ‘TResult’ in the generic type or method ‘IMvxNavigationService.Navigate<TViewModel, TResult>(IMvxBundle?, CancellationToken)’ Also when trying to invoke Close, no longer valid. await NavigationService.Close(this, false); […]

By Rich Foster
Published
Categorised as Uncategorised Tagged , ,

Failed to instantiate the default view controller for UIMainStoryboardFile

I am writing a small sample app with Xamarin and MvvmCross 6.4.2. I completed the Xamarin.Android version and am now starting the Xamarin.iOS version. I created a view controller for the first screen: public class SignInViewController : MvxViewController<SignInViewModel> { public SignInViewController() : base(nameof(SignInViewController), null) { } public override void ViewDidLoad() { // never gets called… […]

By Darius
Published
Categorised as Uncategorised Tagged , ,

Issue in Removing UITableViewCell Selection – MvvmCross / Xamarin.iOS

I have a ViewController which contains a TableView and that table view cell contains another TableView. I need to remove cell selection of the child TableView just after tapping on relevant cell, but I can’t find a way to get my work done. This is my code Parent TableViewCell Class public partial class ParentTableViewCell : […]

By GMHSJ
Published
Categorised as Uncategorised Tagged , , ,

[Xamarin][Mvvmcross] Failed to lookup the required marshalling information

I’m following mvvmcross tutorial for iOS project. I think I’m doing exactly for is described there, but when I run the appliaction I’m getting following error: ObjCRuntime.RuntimeException Message=Failed to lookup the required marshalling information. Additional information: Selector: setGenerositySlider: Type: TipView Source= StackTrace: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] […]

By pawel podsiadly
Published
Categorised as Uncategorised Tagged , ,

Xamarin.iOS, MVVMCross. Can I Access NavigationItem from TabBarController’s root ViewController?

I use Xamarin.iOS and MVVMCross. My app’s architecture is the following: +———————–+ | RootViewModel | | RootViewController | | [MvxRootPresentation] | | | +——–+—-+———+ | | +———–+ +————+ | | +———-+———-+ +———–+———+ |Tab1ViewModel | |Tab2ViewModel | |Tab1ViewController | |Tab2ViewController | |[MvxTabPresentation] | |[MvxTabPresentation] | | | | | +———————+ +———————+ The problem is, that the […]

By kistelekig
Published
Categorised as Uncategorised Tagged , , , ,

How combine multiple visibility properties binding (fluent) in MvvmCross for iOS?

i want to combine these 2 properties: set.Bind(myObject).For(“Visibility”).To(vm => vm.property1).WithConversion(“Visibility”); set.Bind(myObject).For(“Visibility”).To(vm => vm.property2).WithConversion(“Visibility”); I read something like this for Android local:MvxBind=”Visibility Visibility(And(property1, property2))” But don’t know how to translate to fluent, how can i do? Source: Xamarin.ios Questions

By El0din
Published
Categorised as Uncategorised Tagged , , ,

MvvmCross Xamarin.Forms Modal Dialogs

I’m just trying to make my first app with MvvmCross but I already encounter a problem for my app and can’t find anything on the web for that. I want to open a specific page as a modal dialog on supported devices (eg. iPads). For my non MvvmCross applications I do this with Rg.Plugin.Popup but […]

By Sebastian
Published
Categorised as Uncategorised Tagged , , , ,

UICollectionView not showing all items

I am develop in Xamarin.iOs using MVVMCross to databind ObservableCollection to a MvxCollectionViewSource and the items are displayed in a UICollectionView. When setting the items to the ObservableCollection not all of them are shown in the UICollectionView. For instance if I set 10 items to the collection view only 7 of them are shown. Any […]

By doorman
Published
Categorised as Uncategorised Tagged , ,

Hiding the Navigation Bar in Xamarin Project using Mvvmcross

I’m using mvvmcross and implementing the view’s interface in code behind. I would like to hide the navigation bar but I have not found a solution yet. I tried NavigationController.SetNavigationBarHidden(true, false); and NavigationController.NavigationBarHidden = true; in different methods (ViewDidAppear and ViewWillAppear) but they don’t have an impact on the UI. Maybe someone could give me […]

By Cray
Published
Categorised as Uncategorised Tagged , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq