Replies: 1 comment 2 replies
-
Anything interacting directly with the UI (either the controls themselves, or the values in the VM that they're bound to) needs to do the interaction on the UI thread. The work can be done in another thread, but anything that directly changes the UI needs to happen in the right place. It sounds like you're trying to use a separate thread to interact with the Avalonia controls, in which case all those interactions will need to be dispatched to the UI thread. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the MacOS accessibility client APIs (
AXUIElement
etc.) to access elements from certain programs. This is done through a separate thread, and works well. My program is an Avalonia app, and as soon as it tries to access its own UI elements, I get an exception:It works fine if I use the
AXUIElement
APIs through the UI thread instead. Might this be a bug, or is this intentional and expected?Beta Was this translation helpful? Give feedback.
All reactions