开发者

why Wpf TreeView collapse action changes selection?

开发者 https://www.devze.com 2023-02-08 07:54 出处:网络
I have a wpf TreeView with mvvm object binded. when I have a child node selected and I collapse the parent node, the parrent node get 开发者_C百科selected. When I expand the parent again, the parent r

I have a wpf TreeView with mvvm object binded. when I have a child node selected and I collapse the parent node, the parrent node get 开发者_C百科selected. When I expand the parent again, the parent retains the selection. I want Windows Explorer behavior where when I collapse the parent, the parent shows highlight visual but never gets selection and when I expand it again, the original child shows its selection.

Thanks

0

精彩评论

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

关注公众号