C# Class Quasar.AttachedEventHandlerManager

Support for attaching to an event based on the name of a method.
ファイルを表示 Open project: indexzero/quasar

Public Methods

Method Description
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

Method Details

AttachEventHandler() public static method

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
return void