c# - Delayed double click for editing textblock WPF -


i trying make textblock turns editable delayed double click. similar functionality in windows explorer when delayed double click edit file , folder names. possible?

what seeing in windows explorer single-click on selected/focused item initiating rename operation. first click you're seeing selects/focuses item , second click initiates rename operation. can verify using keyboard select different item , single-clicking on newly selected item.

it appears there short duration (e.g. half second) between click on selected/focused item , ui going rename mode. so... if item clicked on has focus, you'll need starting timer. if item still has focus when timer expires, enter renaming mode.

from there matter of applying correct template whichever trigger/flag logic care implement.

edit: search on wpf in-place editing , should find code examples.

note: f2 key tends initiate rename operations on selected items if want wire in well.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -