As this was mainly about the PCL code, I only demo'd in Xamarin.Android and WindowsPhone.
The code from the demo is available in: https://github.com/slodge/NPlus1DaysOfMvvmCross/tree/master/N-10-KittensDb
During the demo, there was some oddness with the keyboard on the emulator - sorry!
Previously in N+1:
- N=0 - a first application - http://slodge.blogspot.co.uk/2013/04/n0-first-mvvmcross-application-n1-days.html
- N=1 - tip calc - including the Android Designer and using IoC -http://slodge.blogspot.com/2013/04/n1-tipcalc-second-example-adding-ioc.html
- N=2 - Kittens - lists and tables - N=2: Lists and Kittens (N+1 days of MvvmCross)
- N=3 - Kitten Cells on iPhone - http://slodge.blogspot.co.uk/2013/04/n3-kitten-cells-on-iphone-n1-days-of.html
- N=4 - ValueConverters - http://slodge.blogspot.co.uk/2013/04/n4-valueconverters-n1-days-of-mvvmcross.html
- N=5 - ICommand and Multiple Pages - http://slodge.blogspot.co.uk/2013/04/n5-some-first-icommands-and-multiple.html
- N=6 - Books over the Network - http://slodge.blogspot.co.uk/2013/05/n6-books-over-network-n1-days-of.html
- N=7 - Books++ - a little UI refinement - http://slodge.blogspot.co.uk/2013/05/n7-adding-some-refinements-to-books-n1.html
- N=8 - Location, Location, Location - http://slodge.blogspot.co.uk/2013/05/n8-location-location-location-n1-days.html
- N=9 - Messenger - http://slodge.blogspot.co.uk/2013/05/n9-getting-message-n1-days-of-mvvmcross.html
Excellent!! Just what the doctor ordered :)
ReplyDeleteI cannot create dataService to Windows 8.1. I got this message:
ReplyDelete"An exception of type 'System.Exception' occurred in App_Concept_W81.exe but was not handled in user code
Additional information: Failed to load Page App_Concept_W81.Views.MainView"
and
"Problem creating viewModel of type MainViewModel - problem MvxException: Failed to resolve parameter for parameter factory of type ISQLiteConnectionFactory when creating App_Concept_PCL.DAL.DataService
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.GetIoCParameterValues(Type type, ConstructorInfo firstConstructor)
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.IoCConstruct(Type type)
at Cirrious.CrossCore.Mvx.IocConstruct(Type t)
at Cirrious.CrossCore.IoC.MvxLazySingletonCreator.get_Instance()
at Cirrious.CrossCore.IoC.MvxTypeExtensions.<>c__DisplayClass43.b__42()
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.ConstructingSingletonResolver.Resolve()
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.InternalTryResolve(Type type, ResolveOptions resolveOptions, Object& resolved)
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.InternalTryResolve(Type type, Object& resolved)
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.TryResolve(Type type, Object& resolved)
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.GetIoCParameterValues(Type type, ConstructorInfo firstConstructor)
at Cirrious.CrossCore.IoC.MvxSimpleIoCContainer.IoCConstruct(Type type)
at Cirrious.CrossCore.Mvx.IocConstruct(Type t)
at Cirrious.MvvmCross.ViewModels.MvxDefaultViewModelLocator.TryLoad(Type viewModelType, IMvxBundle parameterValues, IMvxBundle savedState, IMvxViewModel& viewModel)"
Wath's a problem? I included the packages of cirrious to mvvm.
Thanks