¿Cómo encontrar la posición del cursor en PasswordBbox en wpf?

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.

preguntado el 28 de agosto de 12 a las 13:08

Just to help your search : what you want to look for is "CaretIndex"... -

1 Respuestas

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 pregunta relacionada) but there's definitely no 'proper' way to do it.

contestado el 23 de mayo de 17 a las 13:05

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

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.