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" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -