Hello.
I have a problem with document modification. I try to change SyntaxEditor.Text property programmatically, and I need to produce change of undo stack.
Please, look at the code below:But after that DocumentUndoRedoStateChanged event not fires and Document.Modified property is false.
Please, answer how can I make this task?
I have a problem with document modification. I try to change SyntaxEditor.Text property programmatically, and I need to produce change of undo stack.
Please, look at the code below:
public void SetText(string text)
{
syntaxEditor.Text = syntaxEditor.Document.Text = text;
}
Please, answer how can I make this task?