C
christian.bryan@capita.co
Guest
You will need to Invoke the event on the main thread in your c# DLL. E.g //Declare a dispatcher private Dispatcher _uiDispatcher; // This will be the UI Dispatcher which runs on the main the // Get the UI Thread Dispatcher important as we need to dispatch this event on the main thread _uiDispatcher = Dispatcher.CurrentDispatcher; When it comes to raising the event.... and you are not on the main thread invoke... // Are we on the GUI thread? if (Dispatcher.CurrentDispatcher != _uiDispatcher) { _uiDispatcher.Invoke(OnCSSConversationAdded, this, myConversationAddedEventArgs); } else { OnCSSConversationAdded(this, myConversationAddedEventArgs); }
Continue reading...
Continue reading...