Navigating Between Pages in .NET MAUI [6 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 shows off how to use the built-in navigation system of .NET MAUI to easily navigate between pages of the application with a URL based schema, and how to pass full objects as well.

Follow James:

Links:

Corrections:
08:20 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm
14:35 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm

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

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

Correction: 08:20 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm
Correction: 14:35 - [ICommand] is now [RelayCommand] in the final version of community toolkit for mvvm

dotnet
Автор

I come back to this video everytime i need to add a new page lmao

neofox
Автор

Really useful for someone coming from MVVM in WPF, thank you! One question - is there any tool that will parse the project and create a navigation map for reference? Seems a tool like that would be useful for complex projects.

ajonescouk
Автор

Big thanks for this:). I was thinking about starting something with xamarin but from what I see this MAUI will be better because also I will have desktop apps ^^:)

Tajemniczy
Автор

It’s simple: I see James quality footage — I like the vid and use the knowledge. Great explanations.

drivetrainerYT
Автор

Hey James - great lesson thanks and got it all working. What I can't work out how to do is to detect when the page is navigated away from using the back arrow at the top of the screen. I've tried every event I can find but none of them seem to fire. Not sure what I'm doing wrong. Thanks 😊

risesandhineempowerment
Автор

I'm getting "Global routes currently can't be the only page on the navigation stack", and similar with relative path as well

zikkrype
Автор

At what stage in the MMVM lifecycle does resolution of the Query Property in the View model occur?

ITSligoPaul
Автор

Text Field is null or Empty On DetailViewModel, I would like to get the value and pass to service to get the detail. How would I complish this.?

purplepanther
Автор

When i debug on an actual android phone and attempt to klick the text string to get to the detailpage i get an error saying the "application is in break mode", but i can't seem to fix it. Any suggestions?

jonathanj
Автор

I got breakmode when I tap the task so did I do something wrong ? :(
'Object reference not set to an instance of an object.'

autbeamukda
Автор

What if i the details page needs to pull the details from the server and show them in the view ? shall i call the server in the constructor of the view model or what ?

androidsavior
Автор

Cool! However, most interested if you can tell is you can access incoming sms's or texts from the android or ios, or either you can use the camera and read QR's, do you have that capabilities in MAUI

mayori-engineering-hub
Автор

where i can read document at 11:46 (Transfer/Pass Variable type of Class.cs? And how to read/get/show it from Form Receive?

hungchip
Автор

Question: Why didn't you create the Views folder to place the "DetailPage.xaml" file in this folder ?

lebeluet
Автор

Swipe does not work under Windows machine. But it works when I choose Android. Maui early days with some bugs?

afgdfdgdfddf
Автор

Can you give me 100x200 size modal page example with progress bar and close button

kabeernarang
Автор

and how to create dialog with a password type in blazor maui

slimdridi
Автор

Great video. I just discovered an issue that I'm not sure how to resolve. The query parameter passed into the new page will not set to the query properties in the ViewModel until after the constructor of the viewmodel is completed. This means that I can't get any data to load inside constructor. For example, I pass an itemId from the collectionView page to the detail page, I'm not able to load the item object using the itemId until after the constructor is completed. So this means I can't use the community toolkit's [ObservableProperty] as I'll need to customize the set method on the query parameter property to load the item using the newly set itemId.

GAMacky
Автор

Hi James,
I like all your videos But I have question. Is it possible to pass data to two different pages at the same time. How to do it ?
I tried it but it goes to the first page then second page but I just want to pass the data without navigation. Please guide.

faranahmadk