Using the following code, I'm retrieving a list of Integers from a DB and Converting them to Images of Flags
<ComboBox Name="ComboBox1" ItemSource="{Binding Path=NumberList">
<ComboBox.ItemTemplate>
<DataTemplate>
<Image Source="{Binding Path=Numbers, Converter={StaticResource myValueFlagConverter}}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
If I wanted to have a ComboBox with values 1 to 3 without Binding to the NumberList in the DB, how would I do that using my converter using the simple example below as a starting point or maybe bind to a local array or something?
<ComboBox Name="ComboBox2" >
<ComboBoxItem>1</ComboBoxItem>
<ComboBoxItem>2</ComboBoxItem>
<ComboBoxItem>3</ComboBoxItem>
</ComboBox>