コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }