C# 클래스 Quasar.AttachedEventHandlerManager

Support for attaching to an event based on the name of a method.
파일 보기 프로젝트 열기: indexzero/quasar

공개 메소드들

메소드 설명
AttachEventHandler ( DependencyObject obj, string methodName, Type handlerTypes, EventAttacher attacher ) : void

Attaches an event to the first Parent of obj (which must be a FrameworkElement) which declares a public method with the name "handler" and arguments of types "types". When that method is found, attacher is invoked with: - sender is "obj" - target is the Parent that declares the method - method is the method of Parent

메소드 상세

AttachEventHandler() 공개 정적인 메소드

Attaches an event to the first Parent of obj (which must be a FrameworkElement) which declares a public method with the name "handler" and arguments of types "types". When that method is found, attacher is invoked with: - sender is "obj" - target is the Parent that declares the method - method is the method of Parent
public static AttachEventHandler ( DependencyObject obj, string methodName, Type handlerTypes, EventAttacher attacher ) : void
obj System.Windows.DependencyObject the object to which to attach an event
methodName string
handlerTypes System.Type
attacher EventAttacher indicates how to attach an event to the target
리턴 void