Xamarin.Forms 4.2.0 Hits GA & CollectionView Updates

Paul DiPietro

Paul

Today, we are excited to announce that Xamarin.Forms 4.2.0 is now available in stable. This release continues the 4.0 series with improvements to Shell, community enhancements, performance enhancements, and bug fixes. There are some sweet new enhancements that you can take advantage of right now in 4.2.0.

Shell Lifecycle (PR)

Since it’s launch in Xamarin.Forms 4.0.0, Shell has been a huge hit with developers. Shell gives you a way to simplify their application structure and navigation from a streamlined API. Xamarin.Forms 4.2.0 introduces new APIs to give you more control over the lifecycle of the pages in your app. This includes some brand new events implemented on the BaseShellItem for Appearing and Disappearing along with new methods for OnAppearing and OnDisappearing.

Xamarin.Forms Shell Sample

Community Contributions

This release is also packed full of great community contributions. We want to thank everyone that has submitted an issue, pull request, or just commented on GitHub.

Here is a before and after with Andrew’s new FontImage markup extension:

Before:

After:

Tizen Enhancements

Also, a huge shout out to the Samsung team and community members who made these contributions to Xamarin.Forms 4.2.0 Tizen Support.

  • Add CheckBox (PR
  • Checkbox for Tizen

  • Visual (PR)
  • Support to TabbedPage.BarTextColor, SelctedTabColor, UnselecedTabColor (PR)

CollectionView Development Continues

Our roadmap listed the new CollectionView for official release in Xamarin.Forms 4.2.0. Your feedback during the CollectionView Challenge was important in highlighting the features you need most. This included pull-to-refresh functionality, header/footer templates, and several others. Development has come a long way, but we want to make sure you have the best possible experience when using CollectionView. So at this time we are going to keep CollectionView under the Experimental flag in this release.

CollectionView Challenge Sample - Spotify Reproduction
Spotify Reproduction by luven1992

A lot of work has been finished to address feedback including header/footer templates(Android PR/iOS PR). Additionally, RefreshView, which is the basis for pull-to-refresh functionality, is in progress and is one of our current top priorities alongside CarouselView.

We’d love for you to try out CollectionView if you have the time and let us know what you think. If you encounter any issues, please report them on GitHub. You can also read the official spec on GitHub.

For more information, you can read the current docs as well as the original blog post. The 4.2.0 release includes some bug fixes as well as fuller functionality including grouping on iOS (PR).

Update to Xamarin.Forms 4.2 Today

For full details about Xamarin.Forms 4.2.0, check the release notes.

You can update your existing projects via the NuGet Package Manager. As always, feedback is very welcome. Should you encounter any problems or have suggestions, please open an issue on GitHub.

17 comments

Leave a comment