How to Implement Validation in WPF MVVM

  Рет қаралды 7,317

Tactic Devs

Tactic Devs

Күн бұрын

Пікірлер: 21
@dagorren
@dagorren 10 ай бұрын
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
@AmirRobo
@AmirRobo Ай бұрын
wow, Nice, Cool, Star. I am watching the videos one by one and I can say that they are great💯
@mikaelsvensson5669
@mikaelsvensson5669 8 ай бұрын
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! 🙂
@nicolasfok5661
@nicolasfok5661 10 ай бұрын
The realll MVP DELIVER ! Thank you so much for your expertise and the time you poured to realise this video =D
@rudolphvancoppenhagen2466
@rudolphvancoppenhagen2466 Күн бұрын
Very well explained! I have struggled with validation in WPF for a long time. Do you have videos on validation in WPF using EF? I would like to achieve the same result but with a database and I'd like to use the field sizes etc from the database.
@akwasisarpong241
@akwasisarpong241 2 ай бұрын
Man. You're very good.
@neurogenix3369
@neurogenix3369 8 ай бұрын
Very useful, thank you
@harilalmn
@harilalmn 6 ай бұрын
Awesome!🤩
@anonymoususer1870
@anonymoususer1870 10 ай бұрын
Excellent 👌
@jasonliaus
@jasonliaus 9 ай бұрын
Could you please show how to display error message for Email and Password?
@TacticDevs
@TacticDevs 9 ай бұрын
Hi Jason you can check this video where show exactly how to do it in Mvvm kzbin.info/www/bejne/b5-kmoOgfqqXsNEsi=1jMVrnKPTY5IWhKk
@jasonliaus
@jasonliaus 9 ай бұрын
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 9 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@jasonliaus When the application runs try to resize the window make it a little bit bigger
@Ocean7653
@Ocean7653 5 ай бұрын
How do I add make my WPF app a paid app?
@TacticDevs
@TacticDevs 5 ай бұрын
You can add licensing to the application which means the application will only run with license key 🔑, which you can then sell
The Basics of Data Binding in WPF
20:53
Tactic Devs
Рет қаралды 43 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН
Refactor Your App to The MVVM Community Toolkit (feat. WPF!)
30:34
SingletonSean
Рет қаралды 11 М.
Is LEARNING WPF still WORTH it in 2023?
10:59
tutorialsEU
Рет қаралды 52 М.
Get Vertices of a polyline
7:31
Mojtaba Javadi
Рет қаралды 137
How to Switch Themes in a WPF App at Runtime
24:11
Tactic Devs
Рет қаралды 15 М.
How to Create and Use Validation Rules - WPF TUTORIALS
10:09
SingletonSean
Рет қаралды 11 М.
Running An App I Made Years Ago
20:34
Tactic Devs
Рет қаралды 884