Created
June 13, 2016 06:46
-
-
Save rohits79/29f464fba87ceac2d178c04b234ed5b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IRegion Initialize(T regionTarget, string regionName) | |
{ | |
if (regionName == null) | |
throw new ArgumentNullException(nameof(regionName)); | |
IRegion region = this.CreateRegion(); | |
region.Name = regionName; | |
SetObservableRegionOnHostingControl(region, regionTarget); | |
this.Adapt(region, regionTarget); | |
this.AttachBehaviors(region, regionTarget); | |
this.AttachDefaultBehaviors(region, regionTarget); | |
return region; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment