Class AbstractUnboundInputRadioControlBindingModel<TView, TViewModel, TControl, TValue>
- Assembly
- Whipstaff.Blazor.dll
A class that contains Viewmodel bindings for the InputRadio<TValue> control.
public abstract class AbstractUnboundInputRadioControlBindingModel<TView, TViewModel, TControl, TValue> : AbstractUnboundComponentBaseControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : InputRadio<TValue>
Type Parameters
TViewTViewModelTControlTValue
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundComponentBaseControlBindingModel<TView, TViewModel, TControl>AbstractUnboundInputRadioControlBindingModel<TView, TViewModel, TControl, TValue>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundInputRadioControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundInputRadioControlBindingModel<TView, TViewModel, TControl, TValue> class.
protected AbstractUnboundInputRadioControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
AdditionalAttributes
Gets or sets the binding logic for AdditionalAttributes
public IOneOrTwoWayBind<TViewModel, IReadOnlyDictionary<string, object>>? AdditionalAttributes { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IReadOnlyDictionary<string, object>>
Element
Gets or sets the binding logic for Element
public IOneOrTwoWayBind<TViewModel, ElementReference?>? Element { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ElementReference?>
Name
Gets or sets the binding logic for Name
public IOneOrTwoWayBind<TViewModel, string>? Name { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
Value
Gets or sets the binding logic for Value
public IOneOrTwoWayBind<TViewModel, TValue>? Value { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, TValue>
Methods
ApplyBindings(TView, TViewModel, Action<IDisposable>)
Applies the binding between the view and the view model.
public override void ApplyBindings(TView view, TViewModel viewModel, Action<IDisposable> registerForDisposalAction)
Parameters
viewTViewThe view.
viewModelTViewModelThe viewmodel.
registerForDisposalActionAction<IDisposable>
ApplyBindings(TView, TViewModel, CompositeDisposable)
Applies the binding between the view and the view model.
public override void ApplyBindings(TView view, TViewModel viewModel, CompositeDisposable compositeDisposable)
Parameters
viewTViewThe view.
viewModelTViewModelThe viewmodel.
compositeDisposableCompositeDisposableThe disposable container to register disposals against.