I have a main ViewModel which contains a collection of Group ViewModels
public class NavigationVM:ViewModelBase { private ObservableCollection<NavigationGroupViewModel> _groupCollection; public ObservableCollection<NavigationGroupViewModel> GroupCollection { get { return _groupCollection; } set { if (_groupCollection != value) { _groupCollection = value; OnPropertyChanged("GroupCollection"); } } } ... ... } In GroupViewModel, I have a DeleteCurrentCommand that is triggered when I click on the ContextMenu item
private RelayCommand _deleteCurrentCommand; public RelayCommand DeleteCurrentCommand { get { if (_deleteCurrentCommand == null) { _deleteCurrentCommand = new RelayCommand((o) => { MessageBox.Show("Executed command is " + "DeleteCurrentCommand"); }); } return _deleteCurrentCommand; } } Now I need to remove this item from the GroupCollection which is in the main ViewModel NavigationVM. What is the best way to do this? Can I subscribe to the DeleteCurrentCommand event from NavigationVM?