.NET MAUI - XAML Data Binding and MVVM Basics

preview_player
Показать описание

Building user interfaces is one of the first and most important steps you take when getting started with .NET MAUI. We define user interfaces using XAML and write C# code to describe the app's behavior.

In this video, I want to show you how to use MVVM or the Model View View Model pattern in .NET MAUI. It's the same concept we used in WPF, UWP, or other .NET technologies to abstract the view.

00:00 Introduction
00:46 Visual Assist [Ad]
01:30 Creating the View Model
03:21 Binding to View Model Properties
04:19 Binding to a Command
04:44 Implementing a Command
06:41 Implementing the INotifyPropertyChanged Interface
08:26 Implementing a Value Converter
09:40 Binding a Value Converter
10:32 Why Should You Use MVVM?

🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*

📌 .NET Developer Roadmap

📌 YouTube Playlists:

📌 .NET MAUI - XAML Fundamentals

📌 API Layer - Exchanges Rates API

📌 What is .NET MAUI?

✅ SUBSCRIBE FOR MORE VIDEOS

🚀 CONNECT & SUPPORT

CREDITS

* Affiliate Link: I earn a small commission at no additional cost
Рекомендации по теме
Комментарии
Автор

Hello, excellent video. however, you can now do the opposite of the xaml form, pass some data there to the MainPageViewModel class, so that you can do some processing in the class with information that came from the xaml form

lcppb
Автор

Great video, can you make a video about how to organize folders, projects, services, tiers, using inheritance of componets in xaml, etc, in order to implement a huge application? Thank you!

ezecel
Автор

Ich komme mit eingebetteter Werbung zurecht und danke dir sehr für: BindingContext = new myViewModel();
Hatte nur die DataTypes im xaml definiert und mich gewundert, wieso das viewmodel nicht initialisiert wird

TheWischmopps
Автор

So eine eingebettete Werbung finde ich besonders abartig. Nächstes Mal schaue ich zuerst auf das Inhaltsverzeichnis.

johnchance