title: Buttons don't work when adding a window mousedown event
body: <p>I current have custom close and minimise buttons for my application, they work fine. However when I add the <code>MouseDown</code> event to the window (to make the window draggable), all buttons on the page stop working. Is there a solution to this?</p>
  <p>MainWindow.xaml.cs:</p>
  <pre class="lang-cs prettyprint-override"><code>namespace Test_Window
  {
      public partial class MainWindow : Window
      {
  
          public MainWindow()
          {
              InitializeComponent();
          }
  
          private void Minimise_Window(object sender, MouseButtonEventArgs e)
          {
              WindowState = WindowState.Minimized;
          }
  
          private void Close_Window(object sender, MouseButtonEventArgs e)
          {
              Application.Current.Shutdown();
          }
          private void Window_MouseDown(object sender, MouseButtonEventArgs e)
          {
              if (e.ChangedButton == MouseButton.Left)
                  DragMove();
          }
      }
  }
  </code></pre>
  <p>MainWindow.xaml:</p>
  <pre class="lang-cs prettyprint-override"><code>&lt;Window x:Class=&quot;Test_Window.MainWindow&quot;
          xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
          xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
          xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
          xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
          xmlns:local=&quot;clr-namespace:Daily_Encouragement&quot;
          mc:Ignorable=&quot;d&quot;
          WindowStyle=&quot;None&quot;
          ResizeMode=&quot;NoResize&quot;
          Topmost=&quot;True&quot;
          Title=&quot;MainWindow&quot; Height=&quot;450&quot; Width=&quot;800&quot; MouseDown=&quot;Window_MouseDown&quot;&gt;
      &lt;Grid&gt;
          &lt;Grid Background=&quot;Transparent&quot; Margin=&quot;776,4,4,426&quot; MouseUp=&quot;Close_Window&quot;&gt;
              &lt;TextBlock Text=&quot;X&quot;  Background=&quot;Transparent&quot; Margin=&quot;2,2,6,0&quot; FontWeight=&quot;Bold&quot; FontSize=&quot;16&quot; /&gt;
          &lt;/Grid&gt;
          &lt;Grid Background=&quot;Transparent&quot; Margin=&quot;747,4,29,423&quot; MouseUp=&quot;Minimise_Window&quot;&gt;
              &lt;Frame Background=&quot;Black&quot; Margin=&quot;5,12,5,8&quot; NavigationUIVisibility=&quot;Hidden&quot;/&gt;
          &lt;/Grid&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>