March 2018
Intermediate to advanced
192 pages
4h 4m
English
In the previous chapter, we created a custom navigation service and used the Xamarin.Forms DependencyService to register and resolve the navigation service. Now that we have introduced Ninject, we can swap Xamarin.Forms DependencyService out for a Ninject Module instead, in order to register the navigation service so that it can be resolved and used just like our platform-specific services.
// Remove assembly attribute // [assembly: Dependency(typeof(XamarinFormsNavService))] public class XamarinFormsNavService : INavService { // ... }
We originally instantiated the navigation service and registered view mappings ...