WPF update binding in a background thread

后端 未结 5 1471
情话喂你
情话喂你 2020-12-25 07:52

I have a control that has its data bound to a standard ObservableCollection, and I have a background task that calls a service to get more data.

I want

5条回答
  •  梦谈多话
    2020-12-25 08:33

    use BackgroundWorker to accomplish this task. update the obsrvablecollection in the DoWork method

提交回复
热议问题