title: disable event-bubbling c# wpf
body: <p>I'm having the following problem:</p>
  
  <p>When I got two labels into each other:</p>
  
  <pre><code>&lt;Label x:Name="First" MouseUp="Label_MouseUp"&gt;
      &lt;Label x:Name="Second" MouseUp="Label_MouseUp_1"&gt;This is a label into another label&lt;/Label&gt;
  &lt;/Label&gt;
  </code></pre>
  
  <p>And the following code:</p>
  
  <pre><code>private void Label_MouseUp(object sender, MouseButtonEventArgs e)
  {
      Console.WriteLine("Do NOT show me");
  }
  
  private void Label_MouseUp_1(object sender, MouseButtonEventArgs e)
  {
      Console.WriteLine("Show me");
  }
  </code></pre>
  
  <p>When i click "Second", I want it to trigger only "Label_MouseUp_1". But in my console i get:</p>
  
  <p> Show me <br/> Do NOT show me
  </p>
  
  <p>Is there a way to turn off the bubbling events?</p>
  
  <p>(also, "First" has to be clickable, so removing the event there doesn't solve the problem)</p>
  
  <p>Thnx</p>