Problem:
I want to keep the original image when a node is selected on the TreeView, but whenever a node is selected, it's image changes.
Solution:
You should set a node's ImageIndex so it will stay there. TreeView::SelectedImageIndex is a specific image that is used when a node is the selected node. For example, maybe you have a folder icon for all unselected nodes, but when you have a node selected you want that folder to look like an "open" folder. That is where you can use the SelectedImageIndex.
No comments:
Post a Comment