I want to disable undo redo feature of textbox and richtextbox. Please tell how to do this.
我想禁用textbox和richtextbox的撤消重做功能。请告诉我们如何做到这一点。
2 个解决方案
#1
5
Set the UndoLimit property of your Textbox to 0. Should work.
将文本框的UndoLimit属性设置为0.应该工作。
#2
17
You can use the IsUndoEnabled property:
您可以使用IsUndoEnabled属性:
<TextBox Name="yourTextBox" IsUndoEnabled="False" />
#1
5
Set the UndoLimit property of your Textbox to 0. Should work.
将文本框的UndoLimit属性设置为0.应该工作。
#2
17
You can use the IsUndoEnabled property:
您可以使用IsUndoEnabled属性:
<TextBox Name="yourTextBox" IsUndoEnabled="False" />