This question is locked. New answers and comments are not allowed.
I want to add a text and icon to a RadTreeViewItem, so i'm doing something like this:
| for (int i = 0; i < list.Count; i++) |
| { |
| RadTreeViewItem newItem = new RadTreeViewItem(); |
| StackPanel sp = new StackPanel(); |
| image ic=new Image() { Height = 16, Width = 16, Source = img }; |
| sp.Children.Add(ic); |
| TextBlock text=new TextBlock(); |
| text.Text=list[i].label; |
| sp.Children.Add(text); |
| newItem.Header = sp; |
| } |
I can't see the image, how can i resolve this?