private void ViewModel_NewsUpdated(object sender, NewsUpdatedEventArgs e) { if (e.Message == "ok") { VisualStateManager.GoToState(this, "CompletedState", true); } else { VisualStateManager.GoToState(this, "ErrorState", true); } }
protected virtual void OnNewsUpdated(NewsUpdatedEventArgs e) { if (NewsUpdated != null) NewsUpdated(this, e); }