WPF: threading problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Griff

    WPF: threading problem

    Hi

    Not sure how to accomplish the following, so any advice would be
    appreciated.

    I have an application with 5 ListViews.

    Each ListView is a data-bound control. The data for each comes from
    different sources (files, database, webservice) and is in the form of a
    List(Of x).

    What I want to do is to create 5 separate threads that each return a List(Of
    x) and then bind these to the relevant grids.

    The problem I have encountered is that my initial attempt failed because the
    List(Of x) generated on the background worker thread and therefore can't
    update the UI controls.

    I'm sure there's a simple fix, but can't see it.

    Thanks in advance

    Griff


Working...