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


  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube