public bool Match(UIElement current) { return _type.IsAssignableFrom(current.GetType()); }
public bool Match(UIElement current) { return _type == current.GetType(); }
public bool Match(UIElement current) { return(_type == current.GetType()); }
public bool Match(UIElement current) { return(_type.IsAssignableFrom(current.GetType())); }
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); } } }