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

FreshMvvm FreshTinyIoC.TinyIoCResolutionException

$
0
0

Hi @MichaelRidland,
I've implemented a custom MasterDetail navigation service, to have a custom master/menu page. I inherited from FreshMasterDetailNavigationContainer.
I created the custom Menu via a xaml page with a list for the Menu entries. If a list item is tapped, I resolve the page via FreshPageModelResolver and set the resolved page wrapped by a FreshNavigationContainer to the Detail property of the MasterDetailContainer. The binding of the tapped command is done via FreshEssentials ListViewItemTappedAttached.Command. This works just fine.

But if I then want to push a new page via CoreMethods.PushPageModel("a string", false, true) I get a FreshTinyIoC.TinyIoCResolutionException.

FreshTinyIoC.TinyIoCResolutionException: Resolve failed: DetailPage - Reason: Resolve failed: Int32 ---> FreshTinyIoC.TinyIoCResolutionException: Resolve failed: Int32 at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x00074] in <2c9607ea566c42259e3dd2ee50f95a71>:0 at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x00000] in <2c9607ea566c42259e3dd2ee50f95a71>:0 at FreshTinyIoC.FreshTinyIoCContainer.ResolveInternal (FreshTinyIoC.FreshTinyIoCContainer+TypeRegistration registration, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x001eb] in <2c9607ea566c42259e3dd2ee50f95a71>:0 at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x000ce] in <2c9607ea566c42259e3dd2ee50f95a71>:0

Can anyone give a clue here?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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