示例#1
0
 public bool Match(UIElement current)
 {
   return _type.IsAssignableFrom(current.GetType());
 }
示例#2
0
 public bool Match(UIElement current)
 {
   return _type == current.GetType();
 }
示例#3
0
 public bool Match(UIElement current)
 {
     return(_type == current.GetType());
 }
示例#4
0
 public bool Match(UIElement current)
 {
     return(_type.IsAssignableFrom(current.GetType()));
 }
示例#5
0
 private static void InvokeEventHandlers(UIElement source, RoutedEventArgs args)
 {
   args.Source = source;
   foreach (var handler in GlobalEventManager.GetTypedClassEventHandlers(source.GetType(), args.RoutedEvent))
   {
     handler.InvokeHandler(source, args);
   }
   List<RoutedEventHandlerInfo> handlers;
   if (source._eventHandlerDictionary.TryGetValue(args.RoutedEvent, out handlers))
   {
     foreach (var handler in handlers)
     {
       handler.InvokeHandler(source, args);
     }
   }
 }