A basic way :
<StackPanel Orientation="Horizontal" Margin="10">
<Button x:Name='buttonUndo'
Command="ApplicationCommands.Undo" CommandTarget="{Binding ElementName=textBox1}"
HorizontalAlignment="Left" Height="40" Width="40" FontFamily='Segoe UI Emoji' FontSize='20' Content='↶' Click="buttonUndo_Click"/>
<Button x:Name='buttonRedo'
Command="ApplicationCommands.Redo" CommandTarget="{Binding ElementName=textBox1}"
HorizontalAlignment="Left" Height="40" Width="40" FontFamily='Segoe UI Emoji' FontSize='20' Content='↷' Click="buttonRedo_Click"/>
</StackPanel>
<TextBox x:Name="textBox1" HorizontalAlignment="Left" Height="27" Margin="10,10,0,0" VerticalAlignment="Top" Width="225" />
Code behind :
private void buttonUndo_Click(object sender, RoutedEventArgs e)
{
textBox1.Undo();
}
private void buttonRedo_Click(object sender, RoutedEventArgs e)
{
textBox1.Redo();
}