2
Answers

Add MaxCharactersAllowed property to TextBox same as MaxLength

Ask a question
zohaib khan

zohaib khan

12y
2.4k
1
Hi,

In my project I set max char allowed for TextBox  using following

 TextBox.MaxLength = 20;
 
 I want add one more property as MaxCharactersAllowed. This will work same as MaxLength
 
 TextBox.MaxCharactersAllowed = 20;

I found that TextBox properties written in "System.Windows.Controls.TextBox.cs"
 
Any idea how to add property?

- Thanks


Answers (2)