EditableContentControl double click to activate?

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 7 years ago by Nick Waanders
Version: 17.2.0662
Avatar

Hi, 

I am using EditableContentControl's bound to the names of my objects, so that people can rename the objects if they want to. It works well, but the way to get the EditableContentControl into 'edit' mode is to click it and leave the mouse over it for a second or so.

Is there a way to change this behaviour so it immediately goes into edit mode if the control is double-clicked? That seems to be what our users are expecting. People were thinking they can't rename the objects because they generally move the mouse off the control before the second has passed.

Cheers,

Nick

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Nick,

Our default editing mode mimics how Visual Studio's tree controls work.

We do have a way you can implement a custom action on double-click or Enter keypresses.  By default, it will toggle node expansion if the node has children when either of those occur.

Please see the "Default Actions" topic in the tree controls portion of the Grids documentation for more information on how to do this.

In your custom handler, you can get your core data item and update its IsEditing property to true to begin edit mode.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.