I'm checking this page and I like the only answer there is.
Editable WPF treeview item on doubleclick? (with styles?)
But I don't like the idea to use c# lines, 开发者_C百科Might there be a possible to write that code using XAML?
You can use EventSetter, or AttachedBehavior. But they are assumes that you need c# code-behind.
How to do it in XAML - hard to say. One more possible way - to use x:Code clause to write c# code inside xaml.
You can use CheckBox in the XAML and using its IsChecked property change the Style to the Editable mode
精彩评论