I am using XamWebTree.v9.2 and building nodes dynamically in code like this:
foreach (var ic in ics.Entities) { XamWebTreeItem newNode = new XamWebTreeItem(); newNode.Name = ic.IconID; Image img = new Image(); img.Source = new BitmapImage(new Uri(ic.IconURL, UriKind.Relative)); img.Width = 30; img.Height = 30; newNode.CollapsedIcon = img
newNode.Header = ic.IconDesc; newNode.HorizontalAlignment = HorizontalAlignment.Left; newNode.Tag = ic.IconURL; newNode.Margin = new Thickness(0, 0, 0, 3); LegendTree.Items.Add(newNode);
}
When user double click on image or text, image disapppers and still gone even when select diffrent node. When double click again on same node, image shows back.
How can I prevent this from happenned or don't let user double click on tree node?
Thanks
Fixed by adding same image to
newNode.ExpandedIcon in addition to CollapseIcon