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


  • 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