.NET MAUI Data Binding with MVVM & XAML [5 of 8] | .NET MAUI for Beginners

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

Welcome to the .NET MAUI for Beginners Series where you will learn the basics of building multi-platform apps with .NET MAUI for iOS, Android, macOS, and Windows from a shared C# code base. In this video, James introduces us to the MVVM (Model-View-ViewModel) architecture pattern that separates your user interface from your code. It also unlocks the ability to use data binding, which is the glue between the view and viewmodel that makes the UI responsive when properties change and vise vera! In this video we take the UI that we built with XAML and make it functional with MVVM and the .NET Community Toolkit which streamlines development.

Follow James:

Links:

Corrections:
09:10 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm
15:05 - [ICommand] is now [RelayCommand] in the final verison of community toolkit for mvvm

#dotnet #dotnetmaui #ios #android #windows #macos #csharp

Рекомендации по теме
Комментарии
Автор

Correction: 09:10 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm
Correction: 15:05 - [ICommand] is now [RelayCommand] in the final verison of community toolkit for mvvm

dotnet
Автор

If you are also having trouble because the DeleteCommand isn't triggering, double check that your <SwipeItem> is wrapped inside a <SwipeItems> tag (with an s). Once I fixed that it started working.

lukezeches
Автор

My brain is incrementally exploding while watching the data-binding part :D

redstrikedn
Автор

James explains this stuff so well. MS and the Maui team are lucky to have him.

magellan
Автор

James is the best. I love your teaching the most in YouTube. Life without you would have been critical😅 . I'm praying for your best health brother ❤

kopilkaiser
Автор

Man, I got completely lost. This is supposed to be for beginners but it seems to assume that you already know how to develop apps. What should I learn before this? I'm a Unity developer with 10+ years of experience making games but zero experience making apps.

advanches
Автор

Traversing up the stack beyond the DataTemplate, in one line of xaml, brilliant.

parko
Автор

After working with UI Frameworks like Flutter, VueJS, and React the MAUI DATA-Binding seems way too complicated. Too many lines of code to achieve a trivial task relative to other frameworks.

MahbuburRahman-ucnp
Автор

This series is AWESOME. Perfectly targeted at people like me... TOTAL BEGINNERS!

ChineduOpara
Автор

I haven’t seen a pachinko machine in years. I loved playing them as a kid.

johnluquer
Автор

Having a WPF background, it is very cool to finally see the code generation for the properties and commands.

andrekohler
Автор

the MAUI DATA-Binding seems way too complicated. Too many lines of code to achieve a trivial task relative to other frameworks.

HocineFerradj
Автор

Watching xaml binding is my top feature that pulls me back instead of staying completely on flutter. Hope to see a v2 of this video, with maybe bindings to animations for examples from dribble

prakashsza
Автор

Hi! Could anyone give me an advice, what's the most efficient way to make button's two images changing by bool property binding in Maui's approach? Not sure if I should create a converter for it, or if there is a simplier way. Thanks in advance!

sebastianszafran
Автор

Nice video. I want more like this one :)

quantume
Автор

as someone who did some WPF in the past the 'INotifyProperyChanged' bit made me shudder... The toolkit seems cool, but in reality it works around stuff that Microsoft should of completely redesigned when approaching Maui. it's way, way, way too complicated. lots of nice stuff - but this is pretty heavy

sausagesmcgee
Автор

It's been a year and still the SwipeView it's complete broken on Windows

Remusqs
Автор

Thanks for this! I heard you say "Let me pull over my source generators" and I had to pause. I had no idea that was there in the Solution Explorer and I've been unable to navigate to the generated code (Version 17.4.0 Preview 2.1). Even though it's not what this video was about, it helped save me a bunch of frustration.

terryhenning
Автор

Excellent video. Thanks, I could not see any video showing maui on Iphone or deploying ios app. can you do one please.

sangachidam
Автор

hi how to update BindingContext data from other page?
I have two pages ProductPage and ProductAddPage so how to update BindingContext of ProductPage from ProductAddPage.

IqbalKhan-scmh