Class EventBindingFactory
Definition
Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll
Reflection-based implementation of an IEventBindingFactory.
Inheritance
Object ⇦ EventBindingFactory
Implements
IEventBindingFactory
Members
Constructors
| Name | Description |
|---|---|
| EventBindingFactory(IValueSourceFactory, IValueConverterFactory) | Reflection-based implementation of an IEventBindingFactory. |
Methods
| Name | Description |
|---|---|
| TryCreateBinding(IView, IViewDescriptor, IEvent, BindingContext) | Attempts to creates a new event binding. |
Details
Constructors
EventBindingFactory(IValueSourceFactory, IValueConverterFactory)
Reflection-based implementation of an IEventBindingFactory.
public EventBindingFactory(StardewUI.Framework.Sources.IValueSourceFactory valueSourceFactory, StardewUI.Framework.Converters.IValueConverterFactory valueConverterFactory);
Parameters
valueSourceFactory IValueSourceFactory
valueConverterFactory IValueConverterFactory
Methods
TryCreateBinding(IView, IViewDescriptor, IEvent, BindingContext)
Attempts to creates a new event binding.
public 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.