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:
Comments
Post a Comment