protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            _content?.Dispose();
            _content = null;
        }
Пример #2
0
        protected override void Initialize()
        {
            Log.Logger.Verbose("Started DesignerPane.Initialize()");

            base.Initialize();

            var xamlEditorView = new AvaloniaDesigner();

            xamlEditorView.IsPaused = _isPaused;
            xamlEditorView.Start(_project, _xamlPath, _editorHost);
            _content = xamlEditorView;

            Log.Logger.Verbose("Finished DesignerPane.Initialize()");
        }
        protected override void Initialize()
        {
            Log.Logger.Verbose("Started DesignerPane.Initialize()");

            base.Initialize();

            var settings       = this.GetMefService <IAvaloniaVSSettings>();
            var xamlEditorView = new AvaloniaDesigner();

            xamlEditorView.IsPaused         = _isPaused;
            xamlEditorView.SplitOrientation = settings.DesignerSplitOrientation;
            xamlEditorView.View             = settings.DesignerView;
            xamlEditorView.Start(_project, _xamlPath, _editorHost);
            _content = xamlEditorView;

            Log.Logger.Verbose("Finished DesignerPane.Initialize()");
        }