Hi,
I am trying to bind the XamComboEditor to an Entity Framework object.
The Visual Studio ComboBox has 2 properties for this, DisplayMemberPath and SelectedValuePath.
Using the XamComboEditor, I can only see DisplayMemberPath but no property for binding the value.
I found an example in the forum where the v10.2 DLLs are used, there seemed to be a property called ValuePath, but I cannot see this one in v13.1.
Please give me information on how to solve this.
Thank you,
Regards,
Daniel
Hello,
Thank you for your reply. I am very glad that you have managed to solve your issue. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Edit: Problem solved.
I didn't notice there are two XamComboEditors with the same name, it works now with the other one.
Thank you!
Hello Daniel,
Thank you for your post. I have been looking into your question and the ValuePath property still exists in verion 13.1. The ValuePath property is available for the XamComboEditor, which is located in InfragisticsWPF4.Editors.v13.1 assembly and since the XamComboEditor that you are using does not expose such property you should be using the XamComboEditor located in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1 dll. We are providing two different XamComboEditors, the one in InfragisticsWPF4.Editors.v13.1 is originally created as our WPF’s combo and the one in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1 was a Silverlight control, which from version 11.2 was shipped as cross platform control that is working in both WPF and Silverlight.
If you wish to have a ValuePath and Value properties for the XamComboEditor located in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1, you can create a class that derives from the XamComboEditor and add this functionality. I have created a sample application for you, that shows how you can add a SelectedValue and SelectedValuePath properties to the XamComboEditor from InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1.
Please let me know if you need any further assistance on the matter.
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics