.NET MAUI Updates Controls and Supports Borders, Corners, and Shadows – Visual Studio Magazine



Lagging .NET MAUI Preview 9 updates controls and supports borders, corners and shadows

.NET MAUI, the overdue .NET 6 evolution of Xamarin.Forms, now has updated controls and new support for borders, corners and shadows in most controls and layouts in the last preview.

Microsoft describes .NET MAUI (.NET Multi-platform App UI) as the evolution of Xamarin.Forms, as it adds support for desktop applications to the traditional development framework focused on iOS and Android, among other updates. . He is described as late by Visual Studio Magazine because Microsoft recently said it was “over schedule” and won’t debut with other .NET 6 tools next month. Instead, a Release Candidate edition is expected in the first quarter of next year, and general availability will follow in the second quarter.

.NET MAUI architecture
[Click on image for larger view.] .NET MAUI architecture (source: Microsoft).

As with other .NET 6 components approaching GA status, the development team these days are primarily concerned with fine-tuning things and stabilizing existing controls and layouts – numbering more than 50. However, Preview 9 , which shipped last week, includes new support for borders, corners, and shadows, as well as performance improvements to help Android apps get started instantly.

“The new border control can wrap around any layout or control to add borders and independent control of each corner,” said David Ortinau, senior program manager, .NET Multi-platform App UI, in a blog post from the October 12. Publish. “These controls are provided in the style of WPF, UWP, Silverlight, and the latest Windows App SDK.”

Shadow control can add depth to the .NET 6 project mascot (or whatever that is):

.NET MAUI Shadows
[Click on image for larger view.] .NET MAUI Shadows (source: Microsoft).

Updated controls, with links for more information, include:

  • BoxView: “a simple but flexible and adaptive view that is useful for many purposes.”
  • Indicator Display: “associates with any collection-based control to display a paging index using whatever shape you need.”
  • Image button: “perfect for what you need a button that’s just a picture.”
  • WebView: “uses the platform’s native browser control to render any HTML content inline or embedded; ideal for displaying more complex markup than the subset of HTML supported by Label. “

Regarding the faster start of the Android app, Ortinau said, “Backward Compilation (AOT) makes a big difference in how quickly your apps can start code on Android. Full AOT can also make your app artifacts bigger than you want if you work to stay below the wifi install bar. In this situation, Startup Tracing is the answer. By partially AOT’ing only the parts of your application that run at startup (by tracing the startup execution path, hence the name), we are able to balance speed and size. ”

The article details all the steps necessary to put .NET MAUI Preview 9 to the test, starting with the installation. .NET 6 RC2 and Visual Studio 2022 Preview 5.

In the comments section of the announcement, several developers reported issues getting things to work. In response to one of those comments, Ortinau recommended using Add / Remove Programs to remove all existing .NET 6 installations and old Visual Studio 2022 previews. “We’re definitely still previewing and have a few problems to be solved, ”he said.

More information can be found in the project GitHub repository, which includes a state wiki and roadmap. The latter shows that in addition to the required bug fixes, next month’s preview should provide:

  • Cross-platform lifecycle events
  • Native Platform Lifecycle Events (continued)
  • Microsoft.Maui.Graphics refactoring

About the Author

David Ramel is editor and writer for Converge360.

Leave A Reply

Your email address will not be published.