How to bind an ItemsSource to a private property

前端 未结 4 1180
情书的邮戳
情书的邮戳 2021-01-11 19:25

How to bind WPF an ItemsSource to a private property?



        
4条回答
  •  轮回少年
    2021-01-11 20:07

    This is not possible, if you'd like, you could use internal instead.

    ... and use ObservableCollection and don't forget to set the DataContext of the view.

提交回复
热议问题