Xamarin.Forms 4.2.0 is out!

A new version of Xamarin.Forms has hit NuGet feeds around the globe. Let’s take a quick peek at what has changed under the hood!

Improvements to Shell

Shell has taken the Xamarin.Forms world by storm it seems. I personally STILL haven’t really used it that much, but that’s mainly due to me just being too lazy to start. Also, the apps I’m working on already have a lot of the stuff it offers in place and replacing is an effort I’m not quite ready for yet.

Xamarin.Forms 4.2.0 gives you a few new events that help you on your Shell journey. By hooking up to OnAppearing and OnDisappearing you will have a bit more control over the lifecycle of your pages.

A few other bugs have been fixed as well, one of which was submitted by yours truly 😃 I ran into this bug while building part of Xappy on a live stream with David Ortinau. Using Shell and a PanGestureRecognizer would not work fluently on Android due to touch events being intercepted improperly.

A simple example of using Xamarin.Forms Shell
A simple Xamarin.Forms Shell app

Moarrr CollectionView!

Xamarin is promoting CollectionView as the best thing since ListView and rightfully so. However, at the moment it still is lacking some functionality such as headers/footers to make it a drop-in replacement. No more! Headers and footer templates are in and some other cool bits like pull-to-refresh are actively in development. It will only increase to grow in functionality, which is awesome. However, due to this still being very much in development it is staying behind the experimental feature flag for now. So if you’ve already been using it, nothing really changes 😉

Community contributions

As you probably know, Xamarin.Forms is an abstraction layer on top of the native platforms. Even though a lot of the native APIs have been mapped already there are still some things left to be done. This release adds a few of those, such as setting the ThumbColor on a Switch which up until this point would have to be written into your own custom renderer.

New ThumbColor property
Thumb color can now be set 🙂

For a full list of all the changes, check out the release notes.

Related articles

November 30, 2018 16:45 in

Xamarin.Forms in Space!

As you may have seen from reading other content on this blog I dabble in the world of cryptocurrency. To help me on my position sizing I figured I’d create a little calculator app. Obviously, if you know me, that has to look sexy. So I decided to go on a journey into space using […]

February 15, 2016 11:36 in

Using custom fonts in Xamarin.Forms

Xamarin.Forms is a great platform for quickly making multi-platform mobile apps. Xamarin markets it as a platform that isn’t quite suited for creating complex UIs but that doesn’t necessarily have to be the case. When it comes to branding your app using a custom font can go a long way.

January 8, 2020 22:13 in

Using Firebase Analytics in your Xamarin.Forms app

We all know and love Microsoft’s AppCenter offering when it comes to analytics and crash reporting for our mobile apps. But what if you’re one of those people that are interested in even more in-depth usage statistics? Let’s take a look at Firebase Analytics to satisfy our need for statistics!