Пример #1
0
 protected override void OnContentNameChanged()
 {
     base.OnContentNameChanged();
     content.ContentName = ContentName;
     preview.SetBuilder(ContentName);
     preview.Update();
 }
Пример #2
0
        void WorkbenchWindow_DocumentChanged(object sender, EventArgs e)
        {
            var doc = WorkbenchWindow?.Document?.Editor?.Document;

            if (doc != null)
            {
                doc.LineChanged += (senderr, ee) => preview.Update();
                preview.Update();
            }
        }
Пример #3
0
        protected override void Initialize()
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            base.Initialize();

            RegisterIndependentView(true);

            SetupCommands();

            InheritKeyBindings();

            preview.Update();
        }
Пример #4
0
        protected override void Initialize()
        {
            base.Initialize();

            RegisterIndependentView(true);

            CreateCodeEditor();

            SetupCommands();

            InheritKeyBindings();

            preview.Update();
        }