Well i am using ReactiveExtensions eventhandler to handle my application events, i also use ControlScheduler in order to run the handler on the ui thread. However, recently i am getting Cross Thread exception despite using the ControlScheduler and i don't know what is the problem
Code:
Observable.FromEventPattern<string>(cc, "UiAlertMessage", new ControlScheduler(this)).Subscribe(_ =>
{
AlertControl.Show(this, Language.Title, _.EventArgs.UppercaseFirst());
});
Isn't the new ControlScheduler(this)
supposed to run the code on the UI Thread so i don't get the Cross Threading exception ?