Hi,
I have a XamComboEditor:
<igEditors:XamComboEditor Foreground="Black" Background="#CDDCAF" Grid.Column="1" Grid.ColumnSpan="4" Grid.Row="2" Name="SchedLowComboEditor" ItemsSource="{Binding SchedTitles}" DisplayMemberPath="Value" ValuePath="Key" Value="{Binding SelectedSchedLow.ScheduleTitleKey}" SelectedItemChanged="{Binding ?? }"
I want to bind the SelectionChanged event to method in ViewModel, so that i can refresh the data of my form.
Any suggestions or help?
With Regards,
Sagar
Hello Venkata,
Thank for your post.
I have been looking into your question and it seems the same as your last reply in the following forum thread: http://ko.infragistics.com/community/forums/t/90411.aspx , to which Stefan already replied.I have created a sample application for you, that shows how you can implement one of the approaches that Stefan has suggested.
Feel free to write me if you need further assistance on this matter.
Hello Venkataa,
I am just checking if you require any further assistance on the matter.
I am just checking about the progress of this issue.
Please let me know If you need any further assistance on this.
Thank you for your post.
I have been into your issue and it seems that the reason for it is that the sample that I have created is using the shared XamComboEditor, which is available for WPF from version 11.2. I modify my last sample with WPF XamComboEditor and test it with both versions 10.3 and 14.1.
You can create a Behavior for the XamComboEditor, that has an ICommand DependencyProperty, which you can use to bind a command from the view model. In the OnAttached override of Behavior, you can handle the SelectedItemChanged and in the event handler you can call the Execute of the command.
Please let me know if you need any further assistance on the matter.
Hello Nikolov,
Greetings! the sample code you have provided, dosent work on my machine. I have framework 4 and infragistics 10.3.
can u verify if it works for you?
Regards,