问题
I want to disable undo redo feature of textbox and richtextbox. Please tell how to do this.
回答1:
Set the UndoLimit property of your Textbox to 0. Should work.
回答2:
You can use the IsUndoEnabled property:
<TextBox Name="yourTextBox" IsUndoEnabled="False" />
来源:https://stackoverflow.com/questions/6732586/how-to-disable-undo-in-rich-text-box-in-wpf