databound-controls

WPF background worker need a dispatcher for bound data

I have all my data bound from WPF controls to properties in an object that my Window can access. When I run a backgroundworker thread, do I need a dispatcher to access these underlying properties, or since I'm not explicitly accessing the UI controls, is that handled automatically by the mechanism binding the XAML to the code properties...

How to dispose of a SqlDataReader which is bound to a control

I have an SqlDataReader which I use with a data-bound control. Since I'd like to free the DB-connection as soon as it is no longer used, I'm putting the relevant code into a using-block, e.g. as suggested here: using (SqlDataReader reader = getReader()) { databoundControl.DataSource = reader; databoundControl.DataBind(); } ...