Table of Contents

Class AbstractUnboundTextCellControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Maui.Maui.ViewToViewModelBindings.Microsoft.Maui.Controls
Assembly
Whipstaff.Maui.dll

A class that contains Viewmodel bindings for the TextCell control.

public abstract class AbstractUnboundTextCellControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundCellControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : TextCell

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundCellControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundTextCellControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

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>

Detail

Gets or sets the binding logic for Detail

public IOneOrTwoWayBind<TViewModel, string>? Detail { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, string>

DetailColor

Gets or sets the binding logic for DetailColor

public IOneOrTwoWayBind<TViewModel, Color>? DetailColor { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, Color>

Text

Gets or sets the binding logic for Text

public IOneOrTwoWayBind<TViewModel, string>? Text { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, string>

TextColor

Gets or sets the binding logic for TextColor

public IOneOrTwoWayBind<TViewModel, Color>? TextColor { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, Color>

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.