Browse Source

Fixed RXUI threading issue

pull/95/head
Nikita Tsukanov 11 years ago
parent
commit
13e811f74b
  1. 4
      src/Perspex.ReactiveUI/Registrations.cs

4
src/Perspex.ReactiveUI/Registrations.cs

@ -1,4 +1,6 @@
using System;
using System.Reactive.Concurrency;
using System.Threading;
namespace ReactiveUI
@ -12,7 +14,7 @@ namespace ReactiveUI
{
public void Register(Action<Func<object>, Type> registerFunction)
{
RxApp.MainThreadScheduler = new SynchronizationContextScheduler(SynchronizationContext.Current);
}
}
}

Loading…
Cancel
Save