This document discusses Prism, an open source framework for building cross-platform mobile apps with Xamarin Forms. It introduces Prism and some of its key features like MVVM, navigation, events, and dependency injection. It then provides steps to set up a Prism project, including selecting a dependency injection container and installing NuGet packages. It demonstrates connecting views and view models, navigating between pages, passing parameters, displaying alerts, and using services. Finally, it offers some Prism best practices and references additional resources.
3. What’s Xamarin Forms
An open source mobile UI framework
from Microsoft for building
iOS, Android, & Windows apps with .NET
from a single shared codebase.
4. Frameworks we can use
▸ Prism
▸ MvvmCross
▸ FreshMvvm
▸ Mvvm Light
▸ Reactive UI
43. ▸ Don’t use hardcoded string for
navigation
▸ Avoid using Xamarin Forms namespace
in the ViewModels
▸ Make sure to use IDestructible to
unsubscribe to any events/viewmodel
cleanup
▸ Use a BaseViewModel
▸ Don’t use static/singleton instance
inside viewmodel code