Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 10, 2016 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohits79/8a70e4232902c38070bbe17c58f48f40 to your computer and use it in GitHub Desktop.
Save rohits79/8a70e4232902c38070bbe17c58f48f40 to your computer and use it in GitHub Desktop.
public class RegionManager : IRegionManager
{
public static readonly DependencyProperty RegionNameProperty = DependencyProperty.RegisterAttached(
"RegionName",
typeof(string),
typeof(RegionManager),
new PropertyMetadata(OnSetRegionNameCallback));
public static void SetRegionName(DependencyObject regionTarget, string regionName)
{
regionTarget.SetValue(RegionNameProperty, regionName);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment