Validating input is an important task! With the Xamarin Community Toolkit this has never been easier to implement. If you're using XAML, you don't even need to write code! You can validate anything with a regular expression, or use the built-in URL, email or required string validator.
In this video we will learn what validators are in the box and how to use them or even chain them together with the MultiValidationBehavior
💝 Join this channel to get access to perks:
https://www.youtube.com/channel/Geral...
🛑 Don't forget to subscribe to my channel for more amazing content: https://www.youtube.com/GeraldVerslui...
🐦 Follow me on Twitter: / jfversluis
🔗 Links
Sample App Repo: https://github.com/jfversluis/XCTInpu...
XCT Sample App TouchEffects: https://github.com/xamarin/XamarinCom...
Blog Post by Andrei: / validation-behavior-xamarin-forms-xamarin-...
Xamarin.CommunityToolkit Repo: https://aka.ms/xct
Xamarin.CommunityToolkit Docs: https://aka.ms/xct-docs
⏱ Timestamps
0:00 Intro
0:38 Sample App Outline
1:20 Install Xamarin Community Toolkit NuGet
2:12 Add the Xamarin.CommunityToolkit Namespace
2:40 Implement Sample Code
3:10 Closer Look at the TextValidationBehavior
4:23 Overview of All The ValidationBehaviors
4:47 Implement URI Validation
5:03 Styling When Value is Invalid with InvalidStyle
6:55 Run the Sample App
7:46 UriValidationBehavior Example
8:25 RequiredStringBehavior Example
10:14 Influence Behavior Working with Flags
11:40 MultiValidationBehavior Example
15:08 Outro
🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my...
Twitter: / jfversluis
Blog: https://blog.verslu.is
Twitch: / jfversluis
All the rest: https://jfversluis.dev
#XCT #InputValidation #XamarinForms #XamarinCommunityToolkit
Watch video Input Validation in Xamarin.Forms with Xamarin.CommunityToolkit online without registration, duration hours minute second in high quality. This video was added by user Gerald Versluis 28 January 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,101 once and liked it 265 people.