Can you access UI elements from another thread? (get not set)

前端 未结 4 948
南笙
南笙 2020-11-29 08:10

I see a lot of threads on google/here on UPDATING a UI element from another thread.

What if I want to just get the value of a checkbox?

Am I able to do this

4条回答
  •  庸人自扰
    2020-11-29 08:51

    simply read the value as you normally do. Only to update the control, you need to switch to GUI thread.

提交回复
热议问题