Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@andreaGhisa
Last active July 18, 2018 10:00
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 andreaGhisa/44f689164571d7f1b4210930c9994442 to your computer and use it in GitHub Desktop.
Save andreaGhisa/44f689164571d7f1b4210930c9994442 to your computer and use it in GitHub Desktop.
private static readonly Lazy<YourControl> Control = new Lazy<YourControl>(() => new YourControl());
protected override void Initialize(IViewContext context){
}
protected override Control GetContentControl(){
return Control.Value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment