Mvvm-Light Silverlight, using EventToCommand with a Combobox
问题 I've hooked up a ComboBox's SelectedItemChangeEvent to a ICommand in my view model. Everything seems to be working fine however I do not know how to get the SelectedItem of the ComboxBox. I think I need to use the CommandParameter of the EventToCommand - do I bind this to something in my ViewModel that has the selectedItem of the ComboBox? I've tried this: <ComboBox Width="422" Height="24" DisplayMemberPath="Name" ItemsSource="{Binding CategoryTypes}" SelectedItem="{Binding SelectedCategory}"