Views - WPF MVVM TUTORIAL #2

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 70

  • @danielfuentes2119
    @danielfuentes2119 3 года назад +1

    I'm a spanish native talker that who had to search videos tutorial in English about this topic because I didn't find tutorials with this quality content.
    Excelent content bro.

    • @SingletonSean
      @SingletonSean  3 года назад +1

      Thanks Daniel, I admire your bilingualism!

  • @khashe
    @khashe 3 года назад +3

    I can't believe I found this gem of a channel on a small comment on Reddit.
    I've been struggling with C# classes at school so hard, especially these kinds of applications where you make reservations or place orders with WPF.
    Instantly subbed and thank you for these concise explanations.

    • @SingletonSean
      @SingletonSean  3 года назад +1

      Awesome SK, glad this is helpful to you and others in the community. Welcome to the channel, and keep up the hard work with school!

  • @Cojua
    @Cojua 3 года назад +7

    Followed all of your previous wpf mvvm tutorial, and I can say that this series has a much higher quality in all aspects. So given that the other tutorial was great, I guess this will be super great. Congratulations!

    • @SingletonSean
      @SingletonSean  3 года назад

      Thanks Cojua! In fact, the lower quality of the previous WPF MVVM tutorial was the main inspiration for this series. To be fair, that was my first series on this channel, hahaha. Hope you enjoy the rest of this series!

    • @Cojua
      @Cojua 3 года назад

      @@SingletonSean i think it was perfect. I loved how you changed some design decisions from video to video, and showing what you had learned in between

  • @Vitorgasparete
    @Vitorgasparete Год назад +3

    Grid Shared Size Scoping blow my mind. Thanks

    • @GetMoGaming
      @GetMoGaming 8 месяцев назад

      me too ha. the best bit so far for sure

    • @tayopi
      @tayopi 2 месяца назад

      This is also the first time that I've seen that feature of WPF. Is there an advantage to doing is this way rather that defining column definitions on your top-level grid?

  • @adwadwadw
    @adwadwadw 3 года назад +1

    this and the previous video are like the best I've seen on WPF and MVVM pattern, I'm looking forward to the next episode on viewmodel and binding everything together

    • @SingletonSean
      @SingletonSean  3 года назад +3

      Thanks adwadwadw! I'll release the view model episode today :)

  • @PythonHarry
    @PythonHarry 9 месяцев назад +1

    best tutorial ever. why? hours of content shortened to less than 20mins. i can learn a lot by watching these videos repeatedly.

  • @RookieDev
    @RookieDev Год назад +2

    Can I ask in 3:30 what shortcut did you use to formatting the code like that?

  • @tayopi
    @tayopi 2 месяца назад

    Really great tutorial. Thank you.

  • @Keshi-j4m
    @Keshi-j4m 5 месяцев назад +1

    the best WPF tutorial I have ever watched, very clearly ,thank you so much

    • @SingletonSean
      @SingletonSean  5 месяцев назад +1

      Thank you 🥹 I'm glad this helped!

  • @jualopmor
    @jualopmor 3 года назад +1

    Really nice tutorial! I am learning a lot. Looking forward to Part #3.

  • @dasfahrer8187
    @dasfahrer8187 3 года назад +1

    Oh man, good call on Figma! I wasn't aware of their product.

    • @SingletonSean
      @SingletonSean  3 года назад +2

      It's awesome, I use it for everything! And it's pretty much free

  • @mbwilding
    @mbwilding 3 года назад +2

    Dude I love the pace you go out. Thank you so much for this!

  • @yankunyang1250
    @yankunyang1250 3 года назад +8

    First of all, thanks for providing this series! It is very helpful to go all the way to understand MVVM. I do have a suggestion, though, for the speed of your video. I had to make the speed half fast to catch up what you are saying while I was trying to digest the code you wrote (and you do have considerately large volume of code to demonstrate your point). Anyways, very appreciate your time of making this video! Great video.

    • @SingletonSean
      @SingletonSean  3 года назад +1

      Appreciate the feedback yankun! I like to keep things quick and concise, but I am definitely starting to slow down my pace in my more recent videos. I probably sound really weird at 0.5x speed hahah

    • @RaushanKumar-uj2ew
      @RaushanKumar-uj2ew 2 года назад

      @@SingletonSean I'm already watching your videos at 0.75x :) Great Content💙

  • @clickdraw9762
    @clickdraw9762 3 года назад

    Thank you Sean! God Bless.

  • @benhessner5869
    @benhessner5869 6 месяцев назад

    Thank god for the Pause button.... 🙂 Excellent video (series)

  • @robertorinaldi977
    @robertorinaldi977 2 года назад +5

    Hi Sean. Your videos are great, I'm learning a lot from them. I've seen several of your navigation videos though, all using UserControls.
    Have you published a video showing how to use Windows instead of UserControls in this same pattern? If you haven't published a video in this regard, could you give a tip on how to do it?

  • @kevinmungame1869
    @kevinmungame1869 3 года назад +3

    Good stuff, hope this time we will learn simplified navigation when we get there. Navigation is the worst part of WPF MVVM. Sometimes I think visual studio should provide out of the box nav menu for wpf...good job Sean

    • @SingletonSean
      @SingletonSean  3 года назад +2

      Thanks Kevin! I agree, I feel like everyone struggles with Navigation at some point. It should be pretty simple in this series since we only have 2 pages, but I think the solution is pretty extendable too.

  • @evedickson2496
    @evedickson2496 2 года назад

    Great tutorial

  • @davidhandy8981
    @davidhandy8981 2 года назад +3

    Sean, great videos!
    I have a couple of general questions:
    (1) When you are typing in xaml it appears that you have a setting to go to multiples lines after you enter 3 or more items..ie..
    automatically becomes...
    Where is the setting for this?
    (2) Sometimes it appears to sort these items alphabetically as well....Is there a setting for this?
    (3) You seem to be typing at light speed, are you using a bunch of keyboard shortcuts besides intellisense's normal features?
    Thanks

    • @jymmorton5612
      @jymmorton5612 Год назад +5

      Easy it happens when you hit the / key if you set it in Options. Click Tools -> Options Then type XAML (it should take you to Text Editor -> XAML Click Spacing and choose "Position each attribute on a separate line" toggle the checkbox to where you want the first Attribute.

  • @ElCidPhysics90
    @ElCidPhysics90 Год назад

    Love the “Cowboy coding”, lol. Isn’t that the way it’s done? 😂

  • @GetMoGaming
    @GetMoGaming 8 месяцев назад +1

    So shouldn't it be called MVmV orrr MVV? It would have saved me some confusion about the awareness between the three groups. (@@013)

  • @andrijs1521
    @andrijs1521 Год назад

    can you tell more about figma and wpf integration ?

  • @dasfahrer8187
    @dasfahrer8187 3 года назад +2

    Are you manually moving the Grid.Row and Grid.Column properties to the top, or is auto-formatting doing that for you? If the latter, how did you set that up?

    • @SingletonSean
      @SingletonSean  3 года назад +3

      Good question Das, I use an auto-formatter for this! You can install it here: marketplace.visualstudio.com/items?itemName=TeamXavalon.XAMLStyler

    • @dasfahrer8187
      @dasfahrer8187 3 года назад +1

      @@SingletonSean Awesome. Hopefully this will keep my OCD at bay. It goes banankers when attributes and such are out of order all over the place.

    • @utopianice4574
      @utopianice4574 Год назад +1

      God tier question and answer. Thanks for asking it

  • @darux268
    @darux268 2 года назад

    Good tutorial, but any reason as to why you're using a List view instead of a data grid? Also, is there any reason as to why you're storing the reservations as an IEnumerable instead of as a List?

  • @MrEd-qc7vr
    @MrEd-qc7vr Год назад

    In the row/column definition, what would be the difference between using "auto" and "*"?

    • @MrEd-qc7vr
      @MrEd-qc7vr Год назад

      pffft... got my answer right after I posted this...

  • @agreyling
    @agreyling 3 года назад

    Is the ViewModel tutorial (#3) still in the pipeline? Great series, thanks.

    • @SingletonSean
      @SingletonSean  3 года назад

      Hey Andre, it is! I just didn't have it in the playlist for this series, so it was much harder to find. Thanks for pointing that out!

    • @agreyling
      @agreyling 3 года назад

      @@SingletonSean Thanks! I'll get onto it right away . really appreciate your work .

  • @WaahaidIWKY
    @WaahaidIWKY Год назад

    Hi sean was just wondering why didn't you use a Datagrid instead and used a girdview inside a listview, I looked it up and couldn't understand, so wanted to ask you, is this just a personal preference or is there a reason.

    • @xuli6618
      @xuli6618 Год назад

      don't understand either

  • @AlexReflex
    @AlexReflex 2 года назад

    What kind of plugin are u using, so the properties in your .xaml rearrange automatically? :)

    • @SingletonSean
      @SingletonSean  2 года назад +1

      Hey Mars! I use this plugin called XAML Styler: marketplace.visualstudio.com/items?itemName=TeamXavalon.XAMLStyler
      It's super helpful!

  • @MrSaydo17
    @MrSaydo17 3 года назад +3

    To get text to center in a TextBlock, use TextAlignment="Center" not HorizontalAlignment="Center". HorizontalAlignment will affect the Element, TextAlignment will affect the content. Bitten me many of times too.

    • @SingletonSean
      @SingletonSean  3 года назад +1

      Good point Jackson! I've never really thought that deep about this, but I could see this making a clear difference for multi-line text.

  • @motionsmoments6254
    @motionsmoments6254 3 года назад

    that was fast and good. I wonder how many keyboard shortcut this guy knows besides the programming knowledge

    • @SingletonSean
      @SingletonSean  3 года назад

      Thanks Motions & Moments! I'm slowly becoming a better "keyboard warrior". It all just comes with time :)

  • @buddysnackit1758
    @buddysnackit1758 3 года назад

    I'm following along and doing my own thing. As far as I can tell @ 2:18 your video was done. 17:43 video only 2:18 of MVVM.

  • @jymmorton5612
    @jymmorton5612 Год назад

    I think the reason the text doesn't center in the ListView is because the Textblock is only as big as the text in it, so you have to stretch the Textblock to be the width of the column in the Listview.

  • @kopilkaiser8991
    @kopilkaiser8991 Год назад

    Still trying to understand the concept. But it was a great tutorial to learn different concepts and techniques to learn coding models.

  • @ognjenzivic8674
    @ognjenzivic8674 2 года назад

    Really nice tutorial, but I can see that WPM is a nightmare to maintain. I got lost when I saw you have to place editors outside of the grid definition, and then you have to set grid row and column index for each editor. o.O

  • @Moosa_Says
    @Moosa_Says 2 года назад

    You could have simply used the "DataGrid" control to show reservations.

  • @ragnarok7976
    @ragnarok7976 7 месяцев назад

    Oh wow, I heard Ninja has figma too

  • @Hazem0010
    @Hazem0010 2 года назад

    Excellent tutorial, many thanks to you for this great series and its full of info while coding, but you're talking very very fast which i should slow the vidoe speed in order to catch you on this sprint.

  • @wawandharmawan2441
    @wawandharmawan2441 10 месяцев назад +1

    I like your video content, but it's a bit too fast-paced, especially for beginners and those whose mother tongue is other than English. Give us a little time to understand what you're saying and the code you're typing. Good work.

  • @ORagnar
    @ORagnar 3 года назад +1

    Visual Studio Gives you a visual of the layout as you edit the xaml. So, I'm wondering why you aren't using that. It's much easier than having to run the application to see the layout.
    1/4/22, 12:30 p.m.

    • @SingletonSean
      @SingletonSean  3 года назад

      Good question ORagnar. I used to use the visual preview back in the old days, but I always had so many issues with it. I will admit I was using VS 2013 back then, hahaha. I might have to give it a shot on VS 2019+. Regardless, I haven't had many issues just running the app and using hot reload.

  • @phat80
    @phat80 5 месяцев назад

    Man, you could’ve prepared all the markup before the tutorial. It took to long…