c# - Set edit mode as default behavior when adding a new item in a tree -
i have treeview can simple operations expand, add new item, edit, delete, copy , paste, rename, etc.
what want that, when click "add item", creates , shows in edit mode, can set new name it. right now, assign generic name "new item x".
i hope there easy solution i'm missing here. im working wpf way (i don't think it's necessary put code samples here, if i'm wrong, , i'll edit post).
got it!
i used refresh() function called every second, refreshing tree. handles addcommand, when try add new item, receives request, set editname property true , that's it!
obs: couldn't see other way, couldn't set focus new created item.
Comments
Post a Comment