// Invokes handler instance as per specified 
 // invocation preferences
 internal void InvokeHandler(object target, RoutedEventArgs routedEventArgs)
 {
     if ((routedEventArgs.Handled == false) || (_handledEventsToo == true))
     {
         if (_handler is RoutedEventHandler)
         {
             // Generic RoutedEventHandler is called directly here since
             //  we don't need the InvokeEventHandler override to cast to
             //  the proper type - we know what it is.
             ((RoutedEventHandler)_handler)(target, routedEventArgs);
         }
         else
         {
             // NOTE: Cannot call protected method InvokeEventHandler directly
             routedEventArgs.InvokeHandler(_handler, target);
         }
     }
 }
 // Invokes handler instance as per specified
 // invocation preferences
 internal void InvokeHandler(object target, RoutedEventArgs routedEventArgs)
 {
     if ((routedEventArgs.Handled == false) || (_handledEventsToo == true))
     {
         if (_handler is RoutedEventHandler)
         {
             // Generic RoutedEventHandler is called directly here since
             //  we don't need the InvokeEventHandler override to cast to
             //  the proper type - we know what it is.
             ((RoutedEventHandler)_handler)(target, routedEventArgs);
         }
         else
         {
             // NOTE: Cannot call protected method InvokeEventHandler directly
             routedEventArgs.InvokeHandler(_handler, target);
         }
     }
 }