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 for Converge360.

comments powered by Disqus

Featured

  • 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