wpf button remains pressed until grid populated -


i have 3 image buttons on main screen. button click have written event handler in web request sent , returned response bound datagrid. these things working fine while these processes running, button remains in pressed state until grid populated.

how can overcome issue?

it remains blocked because you're using ui thread request data, can take long time complete, hence thread blocked , cannot therefore update button. there 1 thread update ui, works queue.

you can use background worker fix that, have here:

how use wpf background worker


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -