Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
add image to XamWebTreeItem
posted

How can I add a Icon to a tree view item:

I am using this code to add the nodes:

                    newNode = new Infragistics.Silverlight.Controls.XamWebTreeItem();

                    newNode.Header = location.LocationName;

                    newNode.Name = location.LocationID.ToString();

                    treeNode.Items.Add(newNode);

as you can see I am adding the nodes programmatically, and I need to put a icon in the items.

Thanks in advance...