public MainPage() { InitializeComponent(); _viewModel = new Common.MainPageViewModel(new CoreDispatcherScheduler(Dispatcher)); DataContext = _viewModel; }
public MainPage() { InitializeComponent(); _viewModel = new Common.MainPageViewModel(new SynchronizationContextScheduler(SynchronizationContext.Current)); DataContext = _viewModel; }