Prism.Forms is a powerful framework for building Xamarin.Forms application. It is very well-know in the Xamarin Community. If you are interested in exploring the framework, or if you are already using Prism.Forms and would like to explore new releases, perhaps you are a product owner and would like to test out Prism.Forms APIs with your product, or you are a community contributor who would like to learn, share, teach, blog or speak on Prism.Forms, Prism.Forms Gallery is for you. Prism.Forms Gallery demonstrates a number of Prism and Prism.Forms features in a single app.Continue reading
Enhance Your Xamarin.Forms App’s User Experience With Polly
When working on an app that relies on getting data from an API, it is crucial to make the waiting and loading experience as seamless as possible for the user – like Facebook, Amazon, LinkedIn apps do. Unresponsive app will most likely be uninstalled by the user and you can say goodbye to your customers, revenue, user base, whatever it is you made the app for.
One of the biggest issue API reliant apps face is unreliable network connectivity. As users move around with their mobile devices, they are bound to run into poor or dropped network connectivity issues. We must have a strategy around transient faults and network issues, and that’s where Polly comes to the rescue.
Pro Tip: Useful Code Snippets For Your Xamarin.Forms Development
Code snippets are a hidden gem in Visual Studio that most of us do not pay much attention to. Utilizing them correctly can increase productivity when we have a lot to code. In Visual Studio, code snippets are available for multiple programming languages e.g. C#, F#, XML, HTML, CSS, Python, etc. They are extremely useful when we have a bunch of boiler plate code for our properties, constructors, bindable properties, etc.
Code snippets can be a huge topic, but in this post, I will list some of the XAML and C# code snippets useful when developing Xamarin.Forms mobile applications.
In this post,
- Creating Code Snippets
- C# Examples
- XAML Examples
- Export Templates
Inject Static Libraries And Plugins In Xamarin (Prism.Forms)
When using a container for dependency injection in your Xamarin.Forms app, you may find yourself trying to use a plugin or library that is
static that you want to register with your container. Having
statics in our code makes it hard to test and causes coupling. In this post, I will demonstrate using Prism.Forms how to inject a
static plugin or library that may or may not expose an abstraction.
Using Prism.Forms EventAggregator with Xamarin.Forms
If you are building a Xamarin.Forms app, it should be a no-brainer that you use MVVM pattern for your code base. It should also be a no-brainer that you give Prism.Forms a try. It makes development fast and code easy to maintain with its plethora of built-in services such for navigation, dependency injection, alerts, events, etc.
I recently added a sample to Prism’s samples library on how to use cross-platform EventAggregator using Prism.Forms in a Xamarin.Forms app.