public virtual void OnViewRegistered(object sender, ViewRegisteredEventArgs e) { if (e.RegionName == this.Region.Name) { AddViewIntoRegion(e.GetView()); } }
private void OnContentRegistered(ViewRegisteredEventArgs e) { try { this.contentRegisteredListeners.Raise(this, e); } catch (TargetInvocationException ex) { Exception rootException; if (ex.InnerException != null) { rootException = ex.InnerException.GetRootException(); } else { rootException = ex.GetRootException(); } throw new ViewRegistrationException(string.Format(CultureInfo.CurrentCulture, Resources.OnViewRegisteredException, e.RegionName, rootException), ex.InnerException); } }