
Gets a value indicating whether the user can undo the previous operation in a Text Control.
[C#]
public bool CanUndo { get; }
[Visual Basic]
Public ReadOnly Property CanUndo() As Boolean
Runtime only.
Read only.
The following XAML example shows how to bind the CanUndo property to the IsEnabled attribute of a menu item.
<MenuItem
Header="Undo"
Command="ApplicationCommands.Undo"
IsEnabled="{Binding ElementName=textControl1, Path=CanUndo}" />