.NET MAUI Community Toolkit Adds TouchBehavior
Written by Kay Ewbank   
Thursday, 09 May 2024

Version 8 of the .NET MAUI Community Toolkit has been released with the addition of TouchBehavior (previously known as the TouchEffect). The major release also has breaking changes for the Snackbar on Windows.

NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop. It allows developers to create a single project that works on multiple targets. Any platform-specific assets are placed in sub-folders, and the developer can focus on writing shared UI and code.

net2

The Community Toolkit is a community-created library that contains Extensions, Advanced UI/UX Controls, Converters, and Behaviors.

One of the improvements in this release is the addition of  TouchBehavior. This is similar to the TouchEffect that was present in the Xamarin Community Toolkit. Since .NET MAUI was released, Effects including TouchEffect have been deprecated, with the advice that apps using effects should be modified to use Behaviors, hence the addition of TouchBehavior.

TouchBehavior provides the ability to interact with any visual element in your app based on touch, mouse clicks and hover events. The TouchBehavior implementation makes it possible to customize visual properties of the VisualElement that it is attached to such as the background color, opacity, rotation and scale.

This release does cause some breaking changes for Snackbar on Windows. The Snackbar is a timed alert that appears at the bottom of the screen by default. Specifically, the original versions of Snackbar and Toast for Windows either crashed or opened another instance when the app interacts with them. The developers have rewritten the Snackbar implementation, which overcomes the problem, but say developers need to be aware of the change.

Other changes include the ability to update the Android Navigation Bar color. The updated Community Toolkit is available now. 

net2

More Information

MAUI On GitHub

MAUI Community Toolkit On GitHub

.NET Multi-platform App UI

Related Articles

NET MAUI Comes to VS Code

MAUI Now Available For .NET 7

.NET MAUI Reaches General Availability

.NET MAUI Adds New Layouts

Microsoft Will Replace Xamarin Forms With MAUI .NET

.NET 6 Preview Adds MAUI

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Women Who Code Closing For Lack of Funding
24/04/2024

Women Who Code the US-based non-profit organization that since its foundation in 2011 has advocated for women and diversity in technology, has announced its imminent closure due to critical funding cu [ ... ]



OpenSilver 2.2 Adds LightSwitch Compatibility Pack
30/04/2024

OpenSilver 2.2 has been released with the addition of a LightSwitch Compatibility Pack designed to provide a way to run legacy Visual Studio LightSwitch applications on modern browsers. The open-sourc [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info