public bool CanAttachTo(IViewContent content)
 {
     if (content.GetContent(typeof(MonoDevelop.Ide.Gui.Content.IEditableTextBuffer)) == null)
     {
         return(false);
     }
     else
     {
         return(CodeBehind.IsDesigneable(content.Project.GetProjectFile(content.ContentName)));
     }
 }
        public ISecondaryViewContent CreateSecondaryViewContent(IViewContent viewContent)
        {
            ProjectFile file = CodeBehind.GetCodeBehindFile(viewContent.Project.GetProjectFile(viewContent.ContentName));

            return(new DesignSurfaceViewContent(file.FilePath));
        }