I would like to know if there is a way I can create a custom DisplayMemberPath. I currently have a XamMultiColumnComboEditor that displays 2 fields called Key and Value. I would like to format the display value to have Key, Value without creating a new field that would do so. I saw in a silverlight version a re-template would need to be done. Is there a solution for WPF version?
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Sorry for the late response but I tried to retemple the MultiCombo dropdown and added a converter in the template but I can't seem to get it to work. Can you provide any help for me?
I have modified the your sample, so now it works as you want. Basically I added a resource dictionary in the Resources of the Application in the App.xaml file, so the Styles you wrote can be used by the ComboEditor. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
This works ,however, now when I type in the dropdown I can't see what I type. Am I using the correct template style or missing something?
Hello again,
I can suggest you use this approach for the moment. If I think of a possible way to achieve this without an extra property, I will let you know.
I was hoping of doing it a way without adding another property to the data source because in my scenerio I am using MVVM and didn't want to pass an extra property from the client to the server because there will be alot of data and wanted to limit the data as much as possible.
I have modified the sample, so now it works as you want. Basically instead of using a converter in the style, I added an additional Property in the data source called DisplayValue, which is used as XamMultiColumnComboBox' DisplayMemberPath.
Hope this helps you.