Exemplo n.º 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 AvaloniaDesignerPane = new AvaloniaDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings);

            SiteObject(AvaloniaDesignerPane);
            return(AvaloniaDesignerPane);
        }
Exemplo n.º 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 AvaloniaDesignerPane = new AvaloniaDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings);
            SiteObject(AvaloniaDesignerPane);
            return AvaloniaDesignerPane;
        }