News

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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube