protected virtual void OnModelChanged(EventArgs e) { this.cursorPos = new TextPointer(model.CurrentPosition, 0, 0); this.anchorPos = cursorPos; ChangeLayout(); UpdateScrollbar(); ModelChanged.Fire(this); }
protected virtual void OnModelChanged(EventArgs e) { this.cursorPos = new TextPointer { Line = model.StartPosition, Span = 0, Character = 0 }; this.anchorPos = cursorPos; vScroll.Value = 0; ChangeLayout(); ModelChanged.Fire(this); }