How to Implement Validation in WPF MVVM

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 18

  • @dagorren
    @dagorren Před 9 měsíci +2

    Great Video as always!
    A few timesstamps for when I need this in the future :D
    00:00 Introduction and Demo
    01:01 XAML introduction - Binding Properties - Validation types
    02:52 MVVM - Adding ViewModel & Interface INotifyDataErrorInfo
    05:15 Error Handling - Dictionary of Errors
    09:20 Validation - Validator class
    12:55 Validation - Check & Add to Dictionary of Errors
    16:15 Validation - Attributes & Conditions
    21:18 Implementation - ViewModel into MainWindow XAML
    25:42 MVVM - Command class
    31:28 Implementation - Action Command
    36:05 Demonstration - Textboxes react to input
    37:38 Command Class - Add & Implement Execute Event for Button
    40:50 Display Error - Tooltip
    43:10 Display Error - Textbox
    46:05 Final Demonstration - Ending

  • @mikaelsvensson5669
    @mikaelsvensson5669 Před 7 měsíci

    Hi
    very rarely i write any comment but now i feel i have to give you the credit you deserve for your videos. They are very educational and easy to follow at a perfect pace. For me anyway. I have learned so much from them in a short time! I hope you keep making videos about WPF and MVVM! Maybe one about Async/Await in WPF?! 😉
    Thank you so much for the time you put into your work, it's really appreciated! 🙂

  • @akwasisarpong241
    @akwasisarpong241 Před měsícem

    Man. You're very good.

  • @nicolasfok5661
    @nicolasfok5661 Před 9 měsíci

    The realll MVP DELIVER ! Thank you so much for your expertise and the time you poured to realise this video =D

  • @neurogenix3369
    @neurogenix3369 Před 6 měsíci

    Very useful, thank you

  • @anonymoususer1870
    @anonymoususer1870 Před 9 měsíci

    Excellent 👌

  • @harilalmn
    @harilalmn Před 5 měsíci

    Awesome!🤩

  • @Ocean7653
    @Ocean7653 Před 4 měsíci

    How do I add make my WPF app a paid app?

    • @TacticDevs
      @TacticDevs  Před 4 měsíci

      You can add licensing to the application which means the application will only run with license key 🔑, which you can then sell

  • @jasonliaus
    @jasonliaus Před 8 měsíci

    Could you please show how to display error message for Email and Password?

    • @TacticDevs
      @TacticDevs  Před 8 měsíci

      Hi Jason you can check this video where show exactly how to do it in Mvvm czcams.com/video/9nAiPjIEdzo/video.htmlsi=1jMVrnKPTY5IWhKk

    • @jasonliaus
      @jasonliaus Před 8 měsíci +1

      Hi@@TacticDevs , thanks for the message. I've tried adding two more similar labels and binding path to Element "Emailtextbox" or "Passwordtextbox", but don't know why those "Email is Required" and "Password is Required" never show up

    • @mikaelsvensson5669
      @mikaelsvensson5669 Před 7 měsíci

      HI@@jasonliaus
      I don't know if you got the problem sorted but I put this and it worked:
      VerticalAlignment="Top" Padding="6,0" HorizontalAlignment="Left" Width="300"

    • @jasonliaus
      @jasonliaus Před 7 měsíci

      Hi @mikaelsvensson5669, I tried adding VerticalAlignment="Top" Padding="6,0" HorizontalAlignment="Left" Width="300", but didn't work.
      could you please have a look at my codes for Email:



      under the "Emailtextbox" I add a Label, and try to show the validation message. Anything wrong?

    • @TacticDevs
      @TacticDevs  Před 7 měsíci +1

      @@jasonliaus When the application runs try to resize the window make it a little bit bigger