Adding List Sorting to My First .Net Maui App

Ғылым және технология

🔴 Link to the Github Repo for this project in the video! -
github.com/Programming-With-C...
.Net Maui is here! I'm personally very excited for it, and in this video i talk through the first app I threw together, a basic shopping list app that I'll add features to throughout this playlist. I talk through the Guard Class in CommunityToolkit.DIagnostics (which I love), as well as the hilariously basic sorting that actually kinda works? And then a little bug with the picker component that I'm not sure about. Let's dig in!
🔴 Link to my video showing you how to set up the build tools -
• How to Run Your First ...
🔴 I Started A Programming Resources Newsletter! Expect Good Resources on Your Learning Journey Each Week! - programmingwithchris.substack...
🔴 Subscribe For More Programming Tutorials
bit.ly/3NN23DB
☕️Buy me a coffee if you enjoy the free content! I don't believe in charging for education, but hey, I do love drinking coffee -
bit.ly/3Pw56Sf
I hope you're excited about .net maui as well, if so let me know what type of maui content you'd like to see in the comments below. Thanks!
🕘Timestamps:
00:00 - Video Start
00:47 - Code is in the Github Repo, do whatever you want with it!
01:31 - Guard from the CommunityToolkit.Diagnostic Package (Love it)
04:16 - My Hilariously Basic Sorting Algorithm
10:09 - One Weird Trick To Get CollectionView To Update
14:25 - A Bug With Picker And Android?
Thanks for watching! I plan on making many more of these on .net maui, so if you wish to see more, continue the playlist and subscribe!
🎬Watch My most recent videos:
bit.ly/3yJwaY5
#dotnet #csharp #programming #dotnetmaui

Пікірлер: 8

  • @ProgrammingWithChris
    @ProgrammingWithChris2 жыл бұрын

    UPDATE: I figured out the Picker on Android bug, it seems that the SelectedIndex attribute doesn't seem to be respected on Android when the view is created. I got around this issue by setting this.MyPickersName.SelectedIndex = 0 in the UserListDataInput constructor, forcing it to set selected index on page creation. Seems like a bug, I'll log it and see what they say. Thanks for watching! 🕘Timestamps: 00:00 - Video Start 00:47 - Code is in the Github Repo, do whatever you want with it! 01:31 - Guard from the CommunityToolkit.Diagnostic Package (Love it) 04:16 - My Hilariously Basic Sorting Algorithm 10:09 - One Weird Trick To Get CollectionView To Update 14:25 - A Bug With Picker And Android?

  • @RaabStephan

    @RaabStephan

    Жыл бұрын

    pin?

  • @harag9
    @harag9 Жыл бұрын

    Thanks for taking us through this, been really helpful.

  • @flobuilds
    @flobuilds Жыл бұрын

    And i think in the xamarin community toolkit there is a event to command functionality for the xaml part, this really helped me out on my last project. And i think there are commands for the picker

  • @flobuilds
    @flobuilds Жыл бұрын

    For the list if i can remember correctly from my last xamarin forms app i wrote a check inside this if its a "init" call or something like that and only execute some code if its not init

  • @flobuilds
    @flobuilds Жыл бұрын

    And also if i can remember correctly the selected index of the picker should be a binding to a variable in the viewmodel so you can set it on load or stuff like that and also safe it

  • @ProgrammingWithChris

    @ProgrammingWithChris

    Жыл бұрын

    Yup, that's how I ended up getting around it, grabbing the picker in the view constructor and setting it there. I submitted a bug to the maui repo and so far they've accepted it, so it does sound like that it should work in the XAML without doing that, but hey, new framework, new bugs.

  • @flobuilds

    @flobuilds

    Жыл бұрын

    @@ProgrammingWithChris ok nice sounds also good. If it works it works. And yea i thinks just normal Microsoft stuff someday maybe it will work right but i think these pickers have a default text that can be shown and set individually like "select your model" or something and than the selected index gets safed and set again before showing the view again

Келесі