Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
IValueConverter in a XamMultiColumnComboEditor TextComboColum?
posted

Hello,

Currently I am working on converting a ComboBox into a XamMultiColumnComboEditor as I'm trying to enhance the functionality of a drop down to include more information per item.

The ComboBox in question looks like this:

<ComboBox Name="BankAccounts" Visibility="{Binding ShowAllPaymentFields, Converter = {StaticResource BooleanToVisibilityConverter}}"
ItemsSource="{Binding Path=BankAccounts}"
SelectedItem="{Binding CurrentPayment.BankAccount,Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource BankAccountDisplayConverter}}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>

I have started on the XamMultiColumnComboEditor and this is what it looks like:

<ig:XamMultiColumnComboEditor x:Name="BankAccounts" Visibility="{Binding ShowAllPaymentFields, Converter = {StaticResource BooleanToVisibilityConverter}}"
MinDropDownHeight="100"
MinDropDownWidth="230"
ItemsSource="{Binding Path=BankAccounts}"
AutoGenerateColumns="False"
DisplayMemberPath="AccountNumber"
SelectedItem="{Binding CurrentPayment.BankAccount,Mode=TwoWay}">
<ig:XamMultiColumnComboEditor.Columns>
<ig:TextComboColumn Key="AccountNumber"/>
<ig:TextComboColumn Key="BankName"/>
<ig:DateComboColumn Key="DateLastUsed"/>
</ig:XamMultiColumnComboEditor.Columns>
</ig:XamMultiColumnComboEditor>

My issue is that I do not know how to add the BankAccountDisplayConverter from the ComboBox above into the XamMultiColumnComboEditor. Does anyone have any insight on how to do this? Please let me know if you need clarification. 

Thanks,

Alex

Parents Reply Children