I am coming across a scenario where I need to do something in the viewmodel according to the current selection in the view, but according to MVVM, the view model should not know about the existence of view, then how can i get the dynamic selection in the view?
Share
From Josh Smith’s Article on MVVM
Hence you can have a property in your ViewModel and bind it to the ListView’s SelectedItem.