how to handle WPF listbox selectionchanged event using MVVM

前端 未结 3 1032
时光取名叫无心
时光取名叫无心 2020-12-15 21:09

I am trying to perform listbox changed event in WPF using MVVM. Please let me know how to do this selectionchanged event.

3条回答
  •  情深已故
    2020-12-15 21:40

    you can binding ListBox SelectionChanged Event to command in your ViewModel.

    see this answer https://stackoverflow.com/a/18960028/5627499

提交回复
热议问题