.NET Community Toolkit

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

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

  • @amrosalah01
    @amrosalah01 2 года назад +2

    love Robert's office , lovely doors . Very cozy place .

  • @JoseSilva-gt6zj
    @JoseSilva-gt6zj 2 года назад +3

    Great video, James! Thank you for doing this sample in WPF! There is a ton of this kind of application! Keep going!

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

    Hi, thank you for the video James. I was searching this for two days and I could't understand until I watched this :)

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

    I'm just about to start a new WPF project and you guys have just saved me a ton on work! Thanks!

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

    Mind Blown. Thank you for sharing!

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

    Oh jame's, it's beautiful ❤️

  • @5ROC
    @5ROC 26 дней назад

    Very usefull ! thanks

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

    very very nice thanks ..

  • @JoseSilva-gt6zj
    @JoseSilva-gt6zj 2 года назад +2

    James, I didn't get you when you said that when we cannot inherit from another class then use "[INotifyPropertyChanged]", if we can, then use inheritance from "ObservableObject". Is it correct? If yes, could you talk about why? Thank you so much! Video time is 12:21 .

    • @JamesMontemagno
      @JamesMontemagno 2 года назад +2

      Yeah for example... let's say you inherit from your own base class called "MyBaseClass"... well you couldn't inherit from "ObservableObject" at the same time, so this is where you would use "[INotifyPropertyChanged]"

    • @JoseSilva-gt6zj
      @JoseSilva-gt6zj 2 года назад

      Nice! Thank you so much @@JamesMontemagno !

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

    Robert deserves an Oscar for his acting.😆

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

    Very very nice

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

    In minute 6:20 you said don't put the DataContext there. What did you mean by that?

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

    Currently MAUI is not available in the regular VS. It is only for preview mode, when is the availability is going to be in general channel of VS?

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

    That's amazing

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

    With no more support for VS for Mac, how do we install the community toolkit to VS Code on Mac?

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

    Amazing!!!

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

    This toolkit espcially targets MVC Web Application developers, right? So I can ignore it as a Blazor dev?

  • @dalli-photo
    @dalli-photo 2 года назад

    Hi, great video! Do you have a navigation example for WPF?

    • @bity-bite
      @bity-bite 2 года назад

      Everyone does navigation in MVVM differently, go with the way that you feel comfortable with.

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

      Yeah the toolkit isn't a framework just helpers and works with every application. So navigation is up to you.

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

    With Xamarin.Forms, I am used to using the code behind page class as the view model since it already implements INotifyPropertyChanged. Therefore, I would just set the BindingContext = this and life was good. I attempted to do the same thing with MAUI and with these new code generators. Unfortunately, it doesn't work. It looks like the implementation of INotifyPropertyChanged is slightly different between MAUI Pages and the CommunityToolkit. The end result is: cannot convert from 'System.ComponentModel.PropertyChangedEventArgs' to 'string'. Can this be fixed? I find using the Page class as the ViewModel very convenient as that means one less class to deal with. But perhaps this is bad practice?

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

      I added a Xamarin.Forms sample in tehre so take a look at the source code :)

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

      @@JamesMontemagno my question is regarding MAUI, not Xamarin.Forms. Also, my question is regarding using the Page class as the view model for itself, BindingContext = this; your sample does not address my question.

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

    Good stuff

  • @directionsys
    @directionsys 2 года назад +2

    Please, links to this repo

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

    great

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

    I would love to know When it would come to maui, last time I tried to use it it didn’t work at all

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

      It works perfect with .NET MAUI as I mentioned and have in the sample repo: github.com/jamesmontemagno/MVVMSourceGenerators

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

    I love helper functions! But I always get imposter syndrome, "how can something so easy, be so good?"

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

    Don't you just love magic codes

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

    wouldn't it be wonderful if you had at least a single sample that u could actually clone from git and compile without throwing visual studio into a shock! the mvvm project is broken, same with the maui sample. just the time spent trying to resolve these conflicts makes you wonder...

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

      Would love to know what issues you are running into. I pulled the source code and is workign just fine. I did a few small tweaks today for styles, but in general working on my machines. please open an issue, but also make sure you are up to date on Visual Studio 2022 previews

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

    Ok now I ll get more stupid using this MVVM thing

  • @James-rx5eb
    @James-rx5eb 2 года назад

    Could you provide an example of using attributes to achieve something like a RelayCommand with a CanExecute changed? i.e. You can't hit `Submit` until `!string.IsNullOrWhiteSpace(FullName)` ?

  • @user-je8he7ox6p
    @user-je8he7ox6p 2 года назад

    Amazing!