Table of Contents

Class AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl>

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

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundButtonBaseControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

AbstractUnboundButtonBaseControlBindingModel(Expression<Func<TView, TControl>>)

protected AbstractUnboundButtonBaseControlBindingModel(Expression<Func<TView, TControl>> viewExpression)

Parameters

viewExpression Expression<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

view TView

The view.

viewModel TViewModel

The viewmodel.

registerForDisposalAction Action<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

view TView

The view.

viewModel TViewModel

The viewmodel.

compositeDisposable CompositeDisposable

The disposable container to register disposals against.