Xamarin Forms Complete Starter Project
A light weight starter project for Xamarin Forms.
If you are looking for a more enterprise based architecture, check out Exrin
As with most technologies the default sample projects only ever show the simplest way to do things. But if you need to develop a production quality application you have no idea on the best approach. Maybe that is because the great thing about programming is you can choose so many approaches, why would you limit yourself?
However for the projects I have worked on over the year, here is the default architecture I have settled on. Changes may need to be made with each project but it is a good solid base to start from.
All projects I have developed have shown the need for these :
- MVVM Framework
- API Connectivity
- Local Storage
- Constructor Dependency Injection
I have tried to keep dependencies down to a minimum. There are a lot of different components and packages you can add, each having their different strengths. I chose these packages due to their necessity and/or low footprint.
- MVVMLight Libs
- Microsoft HTTP Client Libraries
- Settings Plugin For Xamarin
- Newtonsoft Json
ViewModels are loaded on a convention basis. They must be in the namespace Mobile.ViewModel and the class name must end in ViewModel. They will then be automatically loaded.
- I love using XAML, hence this project will use XAML for all views.
- While Shared Code may have its place, I never found a solid use case for it in my projects. PCL is my preferred approach.