CalciumFramework / Samples

Samples demonstrate how to use some of the features of Codon.
3 stars 2 forks source link

Xamarin.Forms support? #1

Closed sarseniev closed 7 years ago

sarseniev commented 7 years ago

Does Codon supports Xamarin.Forms? I am getting "Unable to resolve mapping for type 'Codon.Services.IDialogService' There is a default type 'Codon.DialogModel.DialogService, Codon.Platform' that was expected to be found in a platform specific library." error message in Xamarin.Forms shared project. Following nugets added to the Xamarin.Forms iOS projects:

DVaughan commented 7 years ago

Yes, but I've not implemented IDialogService specifically for Xamarin Forms. However you can register each of the platform specific implementations in your Android or iOS app projects like so: Dependency.Register<IDialogService, DialogService>(). Android, iOS, UWP and WPF each have an IDialogService implementation.

sarseniev commented 7 years ago

Works as expected. Thank you, Daniel.