0

enter image description here

In above figure, The cursor is blinking after three text values in PasswordBox.Now i want to find, where the cursor is currently blinking.

1
  • Just to help your search : what you want to look for is "CaretIndex"...
    – franssu
    Aug 28, 2012 at 13:01

1 Answer 1

0

The PasswordBox does not expose any way to get/set the position of the carat.

It may have a non-public property that you can access via reflection (see this related question) but there's definitely no 'proper' way to do it.

1
  • I've got solution to set set the carat from your link what you posted here.But how can i get the carat with using reflection in dynamically ?
    – ASHOK A
    Aug 28, 2012 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.