public override string GetEditableDesignerRegionContent(EditableDesignerRegion region)
{
IDesignerHost host = (IDesignerHost) Component.Site.GetService(typeof (IDesignerHost));
if (host != null)
{
ITemplate template = this.viewPort.Content;
if (template != null && this.viewPort.LayoutControl != null)
{
return ControlPersister.PersistTemplate(template, host);
}
}
return "";
}