title: Avalon Edit Cut\Copy\Paste Commands from MahApps.Metro Button
body: <p>I'm implementing a custom simplified editor in WPF using AvalonEdit and MahApps.Metro. I am stuck trying to get the cut/copy/paste/undo/redo commands working using MahApps.Metro icon/circle buttons instead of a toolbar.</p>
  
  <p>The AvalonEdit sample uses a toolbar, and if I add a similar toolbar to my current application, it works as expected.</p>
  
  <p>I want to call the Cut/Copy/Paste from a series of icon buttons on my app layout instead of inside a toolbar. My MahApps.Metro buttons are as follows. I've tried it with and without the Command Target set. In both cases nothing happens when I click them. </p>
  
  <pre><code>&lt;Button Width="48"
          Height="48"
          Margin="24,0,0,0"
          Style="{DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
          HorizontalAlignment="Center"
          VerticalAlignment="Center"
          Command="Undo"
          CommandTarget="{Binding ElementName=xmlTextEditor.TextArea}"&gt;
          &lt;iconPacks:PackIconMaterial Kind="UndoVariant" /&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>I'm relatively new to WPF so I might be missing something really basic here. Any help is appreciated. </p>