开发者

Create an editable wpf treeview item

开发者 https://www.devze.com 2023-03-29 01:39 出处:网络
I\'m checking this page and I like the only answer there is. Editable WPF treeview item on doubleclick? (with styles?)

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

0

精彩评论

暂无评论...
验证码 换一张
取 消