protected override void OnContentNameChanged() { base.OnContentNameChanged(); content.ContentName = ContentName; preview.SetBuilder(ContentName); preview.Update(); }
void WorkbenchWindow_DocumentChanged(object sender, EventArgs e) { var doc = WorkbenchWindow?.Document?.Editor?.Document; if (doc != null) { doc.LineChanged += (senderr, ee) => preview.Update(); preview.Update(); } }
protected override void Initialize() { ThreadHelper.ThrowIfNotOnUIThread(); base.Initialize(); RegisterIndependentView(true); SetupCommands(); InheritKeyBindings(); preview.Update(); }
protected override void Initialize() { base.Initialize(); RegisterIndependentView(true); CreateCodeEditor(); SetupCommands(); InheritKeyBindings(); preview.Update(); }