Categories
.NET .NET 8 .NET 9 .NET MAUI Android Behaviors Blazor C# Code Commands Desktop Developer General Hybrid iOS Made Easy Mobile MVVM Toolkit Windows Xamarin Xamarin.Forms

Handling UI Events with MVVM Commands in .NET MAUI using EventToCommandBehavior

This article is part of the MVVM – Made Easy series, focusing on handling UI events with ViewModel commands.

This series comprises articles that provide insights into working with the MVVM design pattern, to make it a delightful experience. All the articles in this series can be accessed from here – MVVM – Made Easy

The View serves as the user interface, while the ViewModel is composed of Properties and Commands that encapsulate the underlying logic. This architectural layering offers the distinct advantage of enabling independent development and testing of both components. Data Binding functions as the cohesive element that interlinks these two layers.

An event represents a significant mechanism for notifying state changes, such as a button click, to other components that have a vested interest in the occurrence.

The receiver component is capable of responding to the event by subscribing to it through a method whose signature corresponds with the delegate of the event ensuring type safety. And that method is generally referred to as an event handler.

However, the challenge emerges during the testing of the ViewModel, as the event is closely intertwined with the View. Business logic can’t be independently tested.

Categories
.NET .NET 9 .NET MAUI Android Blazor C# Desktop Embedding Events General Hybrid iOS macOS Mobile Standup Video Visual Studio VS Code Web What's New Windows WinUI 3 Xamarin Xamarin.Forms

Explore the .NET MAUI 9 Release Enhancements in September Community Standup

This September, the .NET MAUI monthly community standup discusses the.NET MAUI 9 release enhancements. The HybridWebView and amazing TitleBar for Windows are just the tip of the iceberg.

Remember to join live on Thu, Sep 5 at 17:30 UTCClick the link to access the timing in your local or preferred time zone. Note, that it’s half an hour behind the usual schedule.

Update: The community links for this month’s standup are here.

Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.

Categories
.NET .NET MAUI Android Blazor C# Desktop Developer Events General Hybrid iOS macOS Mobile Standup VS Code Web Windows Xamarin Xamarin.Forms

Join Live: .NET MAUI Community Standup

The topic for this June month’s .NET MAUI community standup is VS Code Updates.

Of late, VS Code has incorporated many new features, such as XAML IntelliSense and Hot Reload, as the end of support for VS for Mac is quickly approaching (Aug 31, 2024).

Update: The community links for this month’s standup are here.

Refer to this article to start Using VS Code for .NET MAUI development.

David highlighted using MAUI Nightly Builds in the standup. Projects in the All-in-One templates pack already support utilizing the Nightly builds from version 4.6 onwards. However, setting up the package source from the CI feed involves a few manual steps as detailed in the earlier article.

But, automation is the need of the hour. The upcoming release of templates pack v5.6, scheduled for this week, will streamline the process by eliminating manual steps, ensuring seamless functionality when selecting the Nightly builds option upon project creation. Cool 😊.

Update: v5.6 has just been released. Consult this article for further details.

Remember to join live on Thu, Jun 6 at 17:00 UTCClick the link to access the timing in your local/preferred time zone. Note, it’s back at the same time.

Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.

Categories
.NET .NET MAUI Android Blazor C# Desktop Developer Events General Hybrid iOS macOS Mobile Standup Web Windows Xamarin Xamarin.Forms

.NET MAUI Community Standup

The topic for this month’s .NET MAUI community standup is so interesting, Testing your MAUI Apps ft. Gerald Versluis.

Remember to join live on Thu, Apr 4 at 17:00 UTCClick the link to access the timing in your local/preferred time zone. Note, it’s back at the same time.

Update: The community links for this month’s standup are here.

A clip from the recorded standup discussing the perplexing errors encountered during the testing of .NET MAUI Apps.

The All-in-One .NET MAUI App templates support this feature out of the box by incorporating the base framework TFM and conditionally configuring the OutputType property 😊.

.NET MAUI Project File - Base TFM and Conditional OutputType
.NET MAUI Project File – Base TFM and Conditional OutputType
dotnet new mauiapp -o MyApp

Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.