Interface IEventBindingFactory
Definition
Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll
Service for creating IEventBinding instances for a view's events, and subscribing the handlers.
Members
Methods
| Name | Description |
|---|---|
| TryCreateBinding(IView, IViewDescriptor, IEvent, BindingContext) | Attempts to creates a new event binding. |
Details
Methods
TryCreateBinding(IView, IViewDescriptor, IEvent, BindingContext)
Attempts to creates a new event binding.
StardewUI.Framework.Binding.IEventBinding TryCreateBinding(StardewUI.IView view, StardewUI.Framework.Descriptors.IViewDescriptor viewDescriptor, StardewUI.Framework.Dom.IEvent event, StardewUI.Framework.Binding.BindingContext context);
Parameters
view IView
The view to bind to; the target that will raise the bound event.
viewDescriptor IViewDescriptor
Descriptor for the bound view, providing access to its events.
event IEvent
The event data.
context BindingContext
The binding context, including the type descriptor and handler methods.
Returns
The created binding, or null if the arguments do not support creating a binding, such as an event bound to a null value of context.