Length of a text in Content control

Posted by Sankarann under WPF on 1/30/2012 | Points: 10 | Views : 2184 | Status : [Member] | Replies : 1
Hi All,

How to get the length of textbox in content control?

I need to get the length of text which is present in a Datatemplate.

i have two text boxes in a DataTemplate and i want to get the length of both the

text present in that textboxes.

Thanks




Responses

Posted by: Blessyjees on: 1/31/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Normally you will get the length of the content by using "textbox1.Text.Length". Are you try like this. did you get any error. Specify the exact problem.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Sankarann, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response