Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 12, 2016 13:50
Show Gist options
  • Save rohits79/952341a937c2ccc0c4c6fb15fe7044bb to your computer and use it in GitHub Desktop.
Save rohits79/952341a937c2ccc0c4c6fb15fe7044bb to your computer and use it in GitHub Desktop.
public IRegionManager AddToRegion(string regionName, object view)
{
if (!Regions.ContainsRegionWithName(regionName))
throw new ArgumentException(string.Format(Thread.CurrentThread.CurrentCulture, Resources.RegionNotFound, regionName), nameof(regionName));
return Regions[regionName].Add(view);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment