Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

custom view control not working in iOS

$
0
0

Since the xamarin forms does not allow data binding (why even? You'd think this is pretty basic stuff...) on the picker I've made one myself, with some help from the internet ofcourse.
It works fine on both Android and Windows Phone but throws an exception on iOS.

An exception was thrown while invoking the constructor 'Void .ctor()' on type 'MainPage'. ---> Could not load file or assembly 'ThreeAndMore.Mobile.UI' or one of its dependencies (See inner exception for details.)

Which strikes me as odd given that all the relevant projects do, in fact, reference the UI project.

This is the stacktrace:

at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x00107] in <filename unknown>:0 
  at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance (IComponentContext context, IEnumerable1 parameters) [0x000b8] in <filename unknown>:0 
  at Autofac.Core.Resolving.InstanceLookup.Activate (IEnumerable 1 parameters) [0x0001a] in <filename unknown>:0 
  at Autofac.Core.Resolving.InstanceLookup.<Execute>b__0 () [0x00007] in <filename unknown>:0 
  at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare (Guid id, System.Func 1 creator) [0x0002f] in <filename unknown>:0 
  at Autofac.Core.Resolving.InstanceLookup.Execute () [0x00047] in <filename unknown>:0 
  at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable 1 parameters) [0x0005e] in <filename unknown>:0 
  at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (IComponentRegistration registration, IEnumerable 1 parameters) [0x00000] in <filename unknown>:0 
  at Autofac.Core.Resolving.ResolveOperation.Execute (IComponentRegistration registration, IEnumerable 1 parameters) [0x00000] in <filename unknown>:0

I'm using autofac for dependency injection btw.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>