title: Routed event from user control in MVVM application
body: <p>I am stuck on integrating a user control into a mvvm application. </p>
  
  <p>The user control is a custom calendar and was not wrtitten using MVVM principles (I don't want to re-write it in MVVM). </p>
  
  <p>I have a mouse down event that is fired in the user control (Which is combination of three different user controls). </p>
  
  <p>The event fired code looks like this:</p>
  
  <pre><code>public static readonly RoutedEvent DateEvent = 
      EventManager.RegisterRoutedEvent("dateEvent", RoutingStrategy.Bubble, 
      typeof(RoutedEventHandler), typeof(UserControl2));
  
  public event RoutedEventHandler dateEvent
  {
      add{AddHandler(DateEvent, value);}
      remove{ RemoveHandler(DateEvent, value);}
  }
  
  private void UserControl_MouseUp(object sender, MouseButtonEventArgs e)
  {
      RaiseEvent(new RoutedEventArgs(UserControl2.DateEvent, this));
  }
  </code></pre>
  
  <p>How do I subscribe to this routed event in my main app viewModel? I know it is not very MVVM but as I said I cant be doing with re-writing my user control. </p>
  
  <p>I know that this event will bubble up the tree until it is marked as handled.  I  know to add a public void method to deal with the event - I'm just not sure how to implement the interception of the event in the first place.</p>