Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the Text Property of the TextEditor programmatically breaks the undo stack #366

Closed
EdwinCloud101 opened this issue Aug 21, 2022 · 1 comment

Comments

@EdwinCloud101
Copy link

EdwinCloud101 commented Aug 21, 2022

Maybe there is a better way of doing it that doesn't break the undo stack. Just by doing the following will break it

txt1.Text = "a";

@dgrunwald
Copy link
Member

This is intentional behavior.

You can use txt1.Document.Text = "a"; to bypass clearing the undo stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants