I have a windows phone application.
Lets's say I have a CustomersViewModel class that exposes the list of customers. I have a list in xaml that binds to that list:
<ListBox ItemsSource="{Binding Path=Data}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<Text="{Binding Converter={StaticResource userIdToNameConverter}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
So each item in the list box will bind to a single customer object.
CustomersViewModel has an additional property
string StoreId
In my XAML from above, I would like to pass the StoreId to the converter, in addition to the customer object that I am already passing. How can this be done elegantly?
It seems IMultiValueConverter does not exist on WP8, and it is not possible to do data binding to ConverterParameter of the converter.