Hello,
You can check this out:
<ComboBox x:Name="CB_projectlist" VerticalAlignment="Stretch" Height="27" Width="221" Canvas.Left="8" Canvas.Top="23">
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Height="25" Width="25">
<Image Height="70" Width="70" Source="{Binding imgpath}" />
<TextBlock Height="50" Text="{Binding text}" />
</StackPanel>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
AND in the .cs file do code :
List<txtimg> mylist = new List<txtimg>();
mylist.Add(new txtimg { imgpath = "images/s1.jpg", text = "pari ki" });
mylist.Add(new txtimg { imgpath = "images/s1.jpg", text = "diuol2" });
CB_projectlist.ItemsSource = mylist;
WHERE the txtimg class is :
public class txtimg
{
public string imgpath { get; set; }
public string text { get; set; }
}
Hope this helps a little.