How to Implement Validation in WPF MVVM

  Рет қаралды 9,286

Tactic Devs

Tactic Devs

Күн бұрын

Пікірлер: 21
@dagorren
@dagorren Жыл бұрын
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 Жыл бұрын
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! 🙂
@AmirRobo
@AmirRobo 4 ай бұрын
wow, Nice, Cool, Star. I am watching the videos one by one and I can say that they are great💯
@nicolasfok5661
@nicolasfok5661 Жыл бұрын
The realll MVP DELIVER ! Thank you so much for your expertise and the time you poured to realise this video =D
@anonymoususer1870
@anonymoususer1870 Жыл бұрын
Excellent 👌
@akwasisarpong241
@akwasisarpong241 6 ай бұрын
Man. You're very good.
@neurogenix3369
@neurogenix3369 11 ай бұрын
Very useful, thank you
@rudolphvancoppenhagen2466
@rudolphvancoppenhagen2466 3 ай бұрын
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.
@harilalmn
@harilalmn 10 ай бұрын
Awesome!🤩
@Ocean7653
@Ocean7653 9 ай бұрын
How do I add make my WPF app a paid app?
@TacticDevs
@TacticDevs 9 ай бұрын
You can add licensing to the application which means the application will only run with license key 🔑, which you can then sell
@jasonliaus
@jasonliaus Жыл бұрын
Could you please show how to display error message for Email and Password?
@TacticDevs
@TacticDevs Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@jasonliaus When the application runs try to resize the window make it a little bit bigger
Hands-On Power BI Tutorial 📊Beginner to Pro [Full Course] ⚡
3:05:45
Pragmatic Works
Рет қаралды 2,2 МЛН
Жди меня | Выпуск от 24.01.2025 (12+)
46:13
Жди Меня
Рет қаралды 391 М.
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
The Basics of Data Binding in WPF
20:53
Tactic Devs
Рет қаралды 51 М.
How to Bind Collections to UI in WPF MVVM
24:31
Tactic Devs
Рет қаралды 730
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 333 М.
How to Create Custom ValidationRule in WPF Applications.
8:07
WPF Commands Explained  [1 of 2 ]
28:14
Tactic Devs
Рет қаралды 9 М.
JavaScript Visualized - Execution Contexts
11:41
Lydia Hallie
Рет қаралды 80 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 102 М.
WPF MVVM Tutorial: Build An App with Data Binding and Commands
43:47
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН