Why doesn't this data binding work?

前端 未结 3 1459
说谎
说谎 2021-01-13 20:44

I have a ViewModel class that contains a list of points, and I am trying to bind it to a Polyline. The Polyline picks up the initial list of points, but does not notice when

3条回答
  •  没有蜡笔的小新
    2021-01-13 21:22

    It is quite likely that since it is binding to the collection, it will need something like ObservableCollection. What happens if you switch from PointCollection to ObservableCollection?

提交回复
热议问题