Click here to Skip to main content
15,885,175 members
Articles / Desktop Programming / WPF

A WPF Text Control with Chilean RUT Mask

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
10 Feb 2020CPOL6 min read 5.7K   106   4  
A Windows Presentation Foundation TextBox control with chilean tax ID mask, and its validation through modulus 11 algorithm.
Given that RUT format responds to pattern NN.NNN.NNN-C, and I wished to prevent the user from putting any value that didn't correspond; I decided to create my first custom control from a TextBox to accept only the allowed values, besides giving the RUT mask automatically. This post shows how to create the control, define properties, handle behavior of the control, and finally tell us how to use the code.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Chile Chile
Graduated as Industrial Engineer (2019)
University of Santiago, Chile (USACH).

I started programming in 2013, using Python in first instance, but my enthusiasm for programming increased in 2015 with C#, using Windows Forms, and modelling relational databases with MS Access and MariaDB DBMS.

Comments and Discussions