c# - WPF: Trigger button Press from thread other than UI thread -
i have callback function want trigger button press. have tried uiautomation interface found on question:
buttonautomationpeer peer = new buttonautomationpeer(button_read); iinvokeprovider invokeprov = peer.getpattern(patterninterface.invoke) iinvokeprovider; invokeprov.invoke(); but exception
the calling thread cannot access object because different thread owns it.
how can trigger button thread? there way "emit" event ui thread catches?
Comments
Post a Comment