I have a converter that takes a string as input and returns an icon. It's used to provide a icon that is used in a list box. When the itemsSource is set to a list whose items have a property that returns a string, the XAML looks as follows:
<Image Source="{Binding FileName, Converter={StaticResource FileNameToIconConverter}}"/>
That is, the objects in the list have a property called FileName that is of type string.
However, I have another listbox whose itemsSource is a List. In this case, what property can be used to retrieve the string value of the List to send to the converter?
<Image Source="{Binding ??, Converter={StaticResource FileNameToIconConverter}}"/>
Thanks, Ted