title: Handling event's doesn't work from code in WPF
body: <p>I am working on a project and I have encountered problem I can't seem to resolve myself. I have simplified code as much as possible and started a new small project to see if this is not caused by any interference with the rest of bigger project.</p>
  
  <p>This is what I have got:</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;Window Loaded="Window_Loaded" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MainWindow"&gt;
  &lt;Label MouseDown="Label1_MouseDown" Content="y u no work?!" Name="Label1"/&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>CODE:</p>
  
  <pre><code>Class MainWindow 
  
  Private Sub Label1_MouseDown(sender As System.Object, e As System.Windows.Input.MouseButtonEventArgs)
      MsgBox("md1")
  End Sub
  
  Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)
      ' Doesn't work
      Label1.AddHandler(Mouse.MouseDownEvent, Sub() MsgBox("md2"))
      ' Doesn't work neither
      Mouse.AddMouseDownHandler(Label1, Sub() MsgBox("md3"))
  End Sub
  
  End Class
  </code></pre>
  
  <p>"md1" pops up, as expected. "md2" and "md3" doesn't. Where do you think I made a mistake?</p>