private void OnNavigate(NavigateMessage message) { IView view = null; App.Current.Dispatcher.Invoke(() => { this.CurrentView = _views[message.TargetView]; view = (this.CurrentView.DataContext as IView); }); view?.Activated(message.State); }