Skip to content
Luis Matos Logo Luis Matos Logo Luis Matos Logo
  • Start Here
  • Blog
  • Courses
  • Services
  • About Luis
  • Start Here
  • Blog
  • Courses
  • Services
  • About Luis
  • Start Here
  • Blog
  • Courses
  • Services
  • About Luis

Validation Rule Template - Extension for Visual Studio

POST
Sobre el tema: allcommunityextensionresourcesxamarin
Luis Matos
search-and-install-validation-rule-template

Validation Rule Template extension. Create rules for your Xamarin and Windows properties in the easiest way.

This extension enables developers to add an empty template validation rule for Plugin.ValidationRules. The Template contains an empty rule class that has the implementation of IValidationRule.

Improve the quality of your data using validation rules. Validation rules verify that the data the user enters into record meets the standards you specify before the user can save the record. A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value "True" or "False". Validation rules also include an error message to display to the user when the rule returns a value "False" due to an invalid value.

See more here.

Validation Rule Template - Set up

To install Validation Rule Template extension forVisual Studio we can proceed in 3 simple steps:

  1. In Visual Studio Tools menu,  select Extensions and Updates….
    tools-extension-and-updates
  2. Be sure you are in Online section.
    select-online-tab
  3. In the Search bar, type Validation Rule Template and Download the extension for your Visual Studio intance.
    search and install validation rule template

Reminder: Once you have downloaded the extension reset your Visual Studio intance.

How to use it

  1. In Solution Explorer, right click on the project or folder you want the empty rule and select Add > New Item…
    add-new-item
  2. In Visual C# Items, select Rule, type your rule name and add it to your project or folder.
    add-empty-rule-template
  3. Once you have added, your rule file will look like this.
    empty-rule-template

Resouces

  • Available on NuGet: Plugin.ValidationRules
  • Documentation: Validation Rules Plugin for Xamarin and Windows
  • Repository: Validation Rules Plugin for Xamarin and Windows
  • Extension for Visual Studio: Validations Rule Template

Thank you somuch for reading this post!

facebooktwitter
Nuestra puntuación
Luis Matos

Luis Matos

I'm Luis Matos from the Dominican Republic. I have +5 years working with .Net and +3 with Xamarin. I am passionate about automation and mobility. Currently, I'm a Software Operation Leader at Malla Agency. I have founded the Xamarin Universe (EN, ES), and I'm a leader of a local community called LaComarca.
Temas: all, community, extension, resources, xamarin
  • Publicado el 9 de September del 2018
  • Actualizado en September del 2018

Otros contenidos seleccionados para ti


csharp for markup - Luis Matos from luismts.com
CSharp for Markup in Xamarin Forms
Ver Articulo
what code behind means xamrin forms- Luis Matos
What code behind means
Ver Articulo
Restructuring everything: FancyToDoList with Xamarin.Forms
Ver Articulo
The perfect framework in the mobile development world – Talk (spanish)
Ver Articulo

Leave me your comments

avatar
This comment form is under antispam protection
avatar
This comment form is under antispam protection
  Subscribe  
Notify of

Resources

Resources
Mobile Development Courses
Frequent questions

Start Learning

Prototypes
Xamarin Forms
Position your app
Earn money with your app

Luis Matos

About Luis
Services
Contact

Let’s connect

Copyright © 2020 Luis Matos - All rights reserved
  • Malla Agency
  • Terms of use
  • Privacy policies
By continuing to browse the site you are agreeing to our use of cookies.