This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to Xamarin!
You have completed Introduction to Xamarin!
The benefit of the Xamarin platform is sharing code between multiple platforms so we'll discuss some of the ways that is accomplished. There are patterns such as dependency injection (DI), model-view-viewmodel (MVVM) and factories that can help us with code reuse. Our simple app will be using a simple service pattern to share our pizza calculating algorithm.
New Terms:
- PCL -- Portable class library
- DI: Dependency Injection
Further Reading:
.NET Standard
Azure Mobile Services
Wikipedia: Service Oriented Design
Dependency Injection
Wikipedia: Dependency Injection
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up