M
marian.edu
Guest
What did worked for me was to save the current dispatcher in the wrapper constructor and then use that with invoke to either call back on OE handler that you get injected in the constructor or you just publish an event to which you subscribe to from OE side… public event EventHandler MyEvent; MyWrapper (IOEHandler handler) { dispatcher = Dispatcher.CurrentDispatcher; oeHandler = handler; } OnSomeEventPublish (object sender, EventArgs evt) { EventHandler handler = MyEvent; if (handler != null) dispatcher.Invoke(handler, new object[] { this, evt }); } Marian Edu Acorn IT www.acorn-it.com www.akera.io +40 740 036 212
Continue reading...
Continue reading...