How to support ListBox SelectedItems binding with MVVM in a navigable application

前端 未结 9 1238
有刺的猬
有刺的猬 2020-11-27 15:06

I am making a WPF application that is navigable via custom \"Next\" and \"Back\" buttons and commands (i.e. not using a NavigationWindow). On one screen, I have

9条回答
  •  误落风尘
    2020-11-27 16:06

    Try creating an IsSelected property on each of your data items and binding ListBoxItem.IsSelected to that property

    
    

提交回复
热议问题