Xamarin.Forms 2.4.0 Released with .NET Standard 2.0 Support

With help from more than 20 open source community developers, a stable release of Xamarin.Forms 2.4.0 is out, introducing several new features and supporting .NET Standard 2.0 for consistent API usage.

Xamarin.Forms is an open source UI library/framework that allows C# programmers to create native iOS, Android, Windows and macOS apps with Visual Studio and Visual Studio for Mac.

One major feature of the new 2.4.0 release is support for .NET Standard 2.0, which details the set of APIs that all conformant .NET implementations must provide. Its latest version features more than 32,000 of such APIs.

"As support begins to take off for .NET Standard 2.0, we have made sure Xamarin.Forms works seamlessly with both the standard and existing PCL profiles," said David Ortinau in a blog post yesterday. To fully leverage .NET Standard 2.0 APIs, programmers must use Visual Studio 2017 15.3, released last month. Note that the Xamarin.Forms 2.4.0 release notes warn "Not all build features may work" in .NET Standard projects.

.NET Standard 2.0
[Click on image for larger view.] .NET Standard 2.0 (source: Microsoft).

Another new addition is an API for feature flags, a setting that programmers can use to enable or disable features. "This will enable you to benefit from features or behaviors that may be of high value to you without introducing changes that you may not want," Ortinau said.

In this initial rollout of feature flags, they only work with what Xamarin calls "fast renderers" for Image, Button and Label controls in Android projects. Fast renderers result from a refactoring of the renderer architecture for performance and memory consumption optimization, doing away with wrapper classes and thus reducing the number of elements in a Xamarin.Forms UI hierarchy.

Reducing UI Elements
[Click on image for larger view.] Reducing UI Elements (source: Xamarin).

The 2.4.0 release notes explain more:

This version of Xamarin.Forms includes new Android renderers for Image, Button, and Label, which have been code named "fast renderers". These greatly reduce the render time for these controls, but may also change the behavior of your application if you have created custom renderers or are using third-party controls that override the default renderers. For this release, the default set of renderers will be the legacy renderers to prevent any issues in existing apps, but you may opt in to using the new fast renderers using our new feature flag API.

Also featured is a preview of Xamarin.Forms macOS, fixing bugs discovered in the project's pre-release cycle.

Ortinau thanked "the more than 20 amazing community members that contributed to making this a fantastic release," which he described as " our fastest, most stable release ever."

According to the Xamarin.Forms GitHub site, the overall project to date has benefitted from 79 contributors.

Looking at the Xamarin.Forms roadmap, VNext-previews will be released in the third quarter of this year, with the next stable release set for the fourth quarter.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • ML.NET Improves Object Detection

    Microsoft improved the object detection capabilities of its ML.NET machine learning framework for .NET developers, adding the ability to train custom models with Model Builder in Visual Studio.

  • More Improvements for VS Code's New Python Language Server

    Microsoft announced more improvements for the new Python language server for Visual Studio Code, Pylance, specializing in rich type information.

  • Death of the Dev Machine?

    Here's a takeaway from this week's Ignite 2020 event: An advanced Azure cloud portends the death of the traditional, high-powered dev machine packed with computing, memory and storage components.

  • COVID-19 Is Ignite 2020's Elephant in the Room: 'Frankly, It Sucks'

    As in all things of our new reality, there was no escaping the drastic changes in routine caused by the COVID-19 pandemic during Microsoft's big Ignite 2020 developer/IT pro conference, this week shifted to an online-only event after drawing tens of thousands of in-person attendees in years past.

  • Visual Studio 2019 v16.8 Preview Update Adds Codespaces

    To coincide with the Microsoft Ignite 2020 IT pro/developer event, the Visual Studio dev team shipped a new update, Visual Studio 2019 v16.8 Preview 3.1, with the main attraction being support for cloud-hosted Codespaces, now in a limited beta.

Upcoming Events