Xamarin.Forms 4.8 Ships with Experimental Drag & Drop, Gradients/Brushes

Microsoft shipped Xamarin.Forms 4.8 with two new experimental features leading the improvements to the C#-based cross-platform UI toolkit: gradients/brushes for "painting" in an app and drag-and-drop functionality within an app.

Those are the two main highlights of a release for which the dev team focused on stabilizing current features, moving experimental features to stable, and finishing the Gradient brush support.

The three types of brushes are:

Because Brush support in Xamarin.Forms is currently experimental, it can only be used by setting the Brush_Experimental flag.

The second major experimental feature, drag and drop, lets users move items from one location to another area within an app (see animated graphic below) or to a separate app.

Drag and Drop
[Click on image for larger, animated GIF view.] Drag and Drop in Action (source: Microsoft).

Along with setting the DragAndDrop_Experimental flag, Microsoft listed five steps that developers must take to enable the new functionality in their coding. Full documentation is available here.

The two new experimental features join a host of others that include CarouselView, Expander, MediaElement, Shapes, SwipeView, and UWP Shell.

Another new feature in Xamarin-Forms 4.8 is the ability to set the backdrop color of a flyout menu.

"The introduction of the flyout backdrop color makes the shell is even more customizable!" said Jake Kirsch, program manager, Xamarin.Forms, in an August 7 blog post. "Changing the the flyout backdrop color changes the color of the overlay that covers the page of your application when opening the flyout backdrop."

More details on all of the above and much more can be found in the Xamarin.Forms 4.8 release notes.

Xamarin.Forms ships on a six-week release cycle, and Xamarin.Forms 5.0 is due out at the end of September.

Going forward, the roadmap calls for furthering the transition to .NET MAUI, a single-stack UI framework that supports all modern workloads: Android, iOS, macOS, and Windows.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • Xamarin.Forms 5 Preview Ships Ahead of .NET 6 Transition to MAUI

    Microsoft shipped a pre-release version of Xamarin.Forms 5 ahead of a planned transition to MAUI, which will take over beginning with the release of .NET 6 in November 2021.

  • 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.

Upcoming Events