IAddEventHandler
trait · ferroui-xaml-interactivity · v0.5.0
trait IAddEventHandler
A service that provides a way to register event handlers for specific events on various controls.
Members
matches
fn matches(self: &Self, source: &BoxedValue, event_name: &str) -> bool
Checks if the given source object and event name match the criteria for this event handler.
add_handler
fn add_handler(self: &Self, source: &BoxedValue, event_name: &str, handler: AddEventHandlerCallback) -> Option<Rc<dyn IDisposable>>
Registers an event handler for a specific event on the given source object. Disposing the
returned handle removes it; None when the source or the event does not match.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.