Summary
Syntax
public static IDisposable BindInteraction<TViewModel, TView, TInput, TOutput, TDontCare>(this TView view, TViewModel viewModel, Expression<Func<TViewModel, Interaction<TInput, TOutput>>> propertyName, Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>> handler)
where TViewModel : class where TView : class, IViewFor
Type Parameters
Name |
Description |
TViewModel |
The type of the view model. |
TView |
The type of the view being bound. |
TInput |
The interaction's input type. |
TOutput |
The interaction's output type. |
TDontCare |
The interaction's signal type. |
Parameters
Name |
Type |
Description |
view |
TView |
The view to bind to. |
viewModel |
TViewModel |
The view model to bind to. |
propertyName |
Expression<Func<TViewModel, Interaction<TInput, TOutput>>> |
The name of the property on the View Model. |
handler |
Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>> |
The handler. |
Return Value
Type |
Description |
IDisposable |
An object that when disposed, disconnects the binding. |