text property focus at end of text

Grids for WPF Forum

Posted 12 years ago by Mary Fontana - Rudolph Technologies
Avatar
When a property text field is in focus the cursor is at position 0.
How would I set the cursor to end of text length instead of beginning?
Thanks,
Mary

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

We just leverage other WPF controls for the actual data entry. Our default property editor simply uses a ComboBox and/or TextBox depending on the property. In the case of the PropertyGrid, you'd probably have to use an attached behavior for the TextBox control, which would set the selection index to the end and length to zero. You would have to apply it using an implicit Style, presumably defined in the PropertyGrid.Resources.

If you only want one or two properties or property types to have this behavior, then you'd have to use a custom property editor that uses a TextBox and assign it to the associated properties.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.