internal object GetDocumentView(IVsTextLines documentBuffer, string filePath) { var codeWindow = CreateVsCodeWindow(documentBuffer); // in case the designer is not supported, we return the current VsCodeWindow that we just created. if (!_designerSettings.IsDesignerEnabled) { return(codeWindow); } var perspexDesignerPane = new PerspexDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings); SiteObject(perspexDesignerPane); return(perspexDesignerPane); }
internal object GetDocumentView(IVsTextLines documentBuffer, string filePath) { var codeWindow = CreateVsCodeWindow(documentBuffer); // in case the designer is not supported, we return the current VsCodeWindow that we just created. if (!_designerSettings.IsDesignerEnabled) { return codeWindow; } var perspexDesignerPane = new PerspexDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings); SiteObject(perspexDesignerPane); return perspexDesignerPane; }