title: C# WPF NotifyIcon BalloonTip and the TrayBalloonTipClicked Event
body: <p>Within my WPF Application I use the "WPF NotifyIcon" (<a href="https://www.codeproject.com/Articles/36468/WPF-NotifyIcon-2" rel="nofollow noreferrer">https://www.codeproject.com/Articles/36468/WPF-NotifyIcon-2</a>) library to send OS Ballontips like this</p>
  
  <pre><code>TaskbarIcon tbi = new TaskbarIcon();
  
  string title = "My title";
  string text = "My texte...";
  
  //show balloon with custom icon
  tbi.ShowBalloonTip(title, text, NotifiyTest_01.Properties.Resources.Error);
  </code></pre>
  
  <p>This works fine but now I like to react on clicks on that Ballontip and open specific windows to guide the user. I found that the <em>TaskbarIcon</em> class implements an RoutedEventHandler named <em>TrayBalloonTipClicked</em> which is described as handler for Ballontips clicks.</p>
  
  <p><img src="https://i.stack.imgur.com/MeuO8.png" alt="TrayBalloonTipClicked"> </p>
  
  <p>Now I could not figure out how to react to such a click event. I am only used to events defined within XAML definitions like <em>Click="Button_Click"</em> where I just implement a method like this</p>
  
  <pre><code>private void Button_Click(object sender, RoutedEventArgs e)
  {
  }
  </code></pre>
  
  <p>Can anybody help? Thank you!</p>