I created a hierachial datasource that I am binding to for the TreeView. Everything works except that one of the items I bind to is an image column and nothing is showing up. I am using Ria and the data is MS SQL Sever. The image format is a PNG (not gif) and the data is coming back fine. Here is how I have my template:
The TextBlock is binding with Label column, but not the image. Any help is appreciated.
Thanks,
Hector
<DataTemplate x:Key="SymbolInfo"> |
<StackPanel Orientation="Horizontal"> |
<Image Source="{Binding Path=Image}" Margin=" 0,0,6,0"/> |
<TextBlock Text="{Binding Label}" Foreground="Blue" FontWeight="Bold" FontSize="9" /> |
</StackPanel> |
</DataTemplate> |
Thanks,
Hector