New CollectionView Highlights Xamarin.Forms 4.3 Stable Release

Microsoft announced the stable release of Xamarin.Forms 4.3, the latest update to its flagship cross-platform mobile development framework, providing a UI toolkit for building native Android, iOS, and Universal Windows Platform (UWP) apps using C#.

XF 4.3 removes the "experimental" flag from the feature, which has been in the works at least as far back as a December 2018 early preview of v4.0.

At that time, Microsoft said, "CollectionView is the flexible and performant list control that you've been asking for." The control, designed to succeed the venerable ListView, was deemed worthy of its own blog post.

CollectionView in Action
[Click on image for larger animated GIF view.] CollectionView in Action (source: Microsoft).

There, Paul DiPietro said it improves on ListView's design by reducing technical complexity and providing more layout and functionality flexibility, with characteristics including:

  • CollectionView has no concept of cells. Instead, data templates are used to define the appearance of each item of data in the list.
  • CollectionView reduces the API surface of ListView. Many properties and events from ListView are not present in CollectionView.
  • CollectionView has a flexible layout model, which allows data to be presented vertically or horizontally, in a list or a grid.

More information on the new feature can be found in the documentation.

In a post yesterday (Oct. 22), DiPietro also announced another view in XF 4.3, RefreshView. "The need for pull-to-refresh functionality was a top piece of feedback during the CollectionView Challenge," he said. "RefreshView provides pull-to-refresh functionality to any child which supports scrollable content."

Also new are:

  • SourceLink Support: "With SourceLink support added to Xamarin.Forms, easily step into the source code for a first-class debugging experience. Learn more through the SourceLink GitHub repo."
  • Displaying HTML on a Label: "By setting the TextType property on the Label to Html, your string values can be parsed as HTML."

While all of the above are stable, XF 4.3 introduces some preview features including CarouselView and Shell support in UWP projects, both of which sport experimental flags.

More information can be found in the update's release notes."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • VS Code Java Team Details 5 Best Dev Practices

    Microsoft's Visual Studio Code team for Java development added a new Coding Pack for Java installer and detailed best practices for setting up a development environment.

  • Binary Classification Using PyTorch: Defining a Network

    Dr. James McCaffrey of Microsoft Research tackles how to define a network in the second of a series of four articles that present a complete end-to-end production-quality example of binary classification using a PyTorch neural network, including a full Python code sample and data files.

  • Blazor Debugging Boosted in .NET 5 RC 2

    In highlighting updates to ASP.NET Core in the just-launched second and final Release Candidate of .NET 5, Microsoft pointed out better debugging for Blazor, the red-hot project that allows for C# coding of web projects.

  • Block Stack

    Final Go-Live .NET 5 Release Candidate Ships Ahead of Nov. 10 Debut

    Having been deemed "feature complete" and "near final" and "go live" for some time now, .NET 5 is out in a second and final Release Candidate, scheduled for a Nov. 10 debut during .NET Conf 2020.

  • Edge Browser Dev Tools for VS Code Now Generally Available

    Microsoft has moved its Edge browser development tools for Visual Studio Code from preview to general availability, providing in-editor web site debugging and other functionality.

Upcoming Events