public void CheckUiContext() { if (UiDispatcher.IsInContext()) { return; } throw ExceptionHelper.Get("MVVM ViewModel should be updated from UI thread. Use await pattern and Dispatcher to do so."); }