Class AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl>
- Assembly
- Whipstaff.Wpf.dll
A class that contains Viewmodel bindings for the ButtonBase control.
public abstract class AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundContentControlControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ButtonBase
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundContentControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundButtonBaseControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundButtonBaseControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
BindCommand
Gets or sets the command binding logic for ButtonBase
public ICommandBinding<TViewModel>? BindCommand { get; init; }
Property Value
- ICommandBinding<TViewModel>
ClickMode
Gets or sets the binding logic for ClickMode
public IOneOrTwoWayBind<TViewModel, ClickMode>? ClickMode { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ClickMode>
Command
Gets or sets the binding logic for Command
public IOneOrTwoWayBind<TViewModel, ICommand>? Command { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ICommand>
CommandParameter
Gets or sets the binding logic for CommandParameter
public IOneOrTwoWayBind<TViewModel, object>? CommandParameter { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, object>
CommandTarget
Gets or sets the binding logic for CommandTarget
public IOneOrTwoWayBind<TViewModel, IInputElement>? CommandTarget { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IInputElement>
IsPressed
Gets or sets the binding logic for IsPressed
public IOneOrTwoWayBind<TViewModel, bool>? IsPressed { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
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.