Hi!
I have a TreeView control with 3 levels of nodes and an ImageBox with 5 images. There is some code in NodeClick and TreeView_Expand events. And when I click on some Node or expand it - everything is all right. But when I call these events from within code, like this:
Call TreeView_NodeClick(TreeView.SelectedItem) or something else, images of the first level nodes turn into medley of all images of ImageBox and there is no way to return to previous state, merely reload the TreeView.
Why?
I have a TreeView control with 3 levels of nodes and an ImageBox with 5 images. There is some code in NodeClick and TreeView_Expand events. And when I click on some Node or expand it - everything is all right. But when I call these events from within code, like this:
Call TreeView_NodeClick(TreeView.SelectedItem) or something else, images of the first level nodes turn into medley of all images of ImageBox and there is no way to return to previous state, merely reload the TreeView.
Why?