9. Parameters in URL based Navigation & Static Repository in .Net Maui

preview_player
Показать описание
🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.

💎Learn .NET MAUI while creating a Contacts App in .NET 7:

🔥Learn Blazor while creating an Inventory Management System in .NET 6

💎 Complete Guide to ASP.NET Core Identity

💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture

💎 Complete Web API Course:

👍Architecture Course

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

Thanks for making the maui learning simple and easy. Thanks alot. Appreciate the hard work

waseembhat
Автор

There is one problem with this code: Sometimes opening the EditContactPage can take so long, that ItemTapped event is run again, so that it sets SelectedItem to null, before the page is opened, it then gives and exception and does not open the page, because it can not pass through the Selecteditem, since Tapped event set it to null again. To go around this, you can create a check inside ItemsTapped event, where it sets it to null ONLY if you are still in the ContactsPage and have not run ItemSelected event yet. There are many ways to add this check. But adding it is good idea, so that you can make sure it never does exception and hang. I just have one Global Variable, where I have INT telling which page I am running at any time. So for example if my Global INT identifier for ContactPage is "4", and identifier for EditContactPage is "5", I set it to 5, when SelectedItem event happens GlobalVars.PageIdentifier = 5;. Also, when Tapped event occurs, I have a line like this: if (GlobalVars.PageIdentifier != 5) listContacts.SelectedItem = null; I know in general it is good to avoid global hard coupled variables, but I have found it a good to have one variable which always keeps track on what page you are running, to avoid any problems with async/await. Here, it can not set SelectedItem back to null, because PageIdentifier is already set to "next page" and it has to pass that SelectedItem. I hope this was not complicated explanation.... I just wanted to point out this issues. In general... I really like your videos. There is nothing extra, everything is explained in very basic level and easy to understand. Usually people who make videos like these, they add way too much extra stuff and explain too much stuff that is not related to topic, but you keep it simple enough, so that processes are easy to understand. I have a very large project myself, and understanding all these things in basic level, is very helpful. Thank you. I can then make them all very complicated for myself, but before that, one needs to understand the basics connections and structure well.

markoviitanen
Автор

dude i ran into a problem

when i click on the name of the contacts's name hmmm the text at the top doesn't get change . It remain the same like "Welcome to .NET MAUI!", hmmm what could be the problem
i tried debbugging using breakpoints but can't abe to do that also don't know why

hmmm

hackur