I\'m using the MVVM pattern with WPF and have run into a problem, which I can simplify to the following:
I have a CardType model.
public class CardTy
You can use SelectedValue and SelectedValuePath:
Where ProductId is a int property with NotifyPropertyChanged.
Read a great explanation here: Difference between SelectedItem, SelectedValue and SelectedValuePath