Table of Contents

Class AbstractUnboundSearchBarControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the SearchBar control.

public abstract class AbstractUnboundSearchBarControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundInputViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : SearchBar

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundInputViewControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundSearchBarControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

CancelButtonColor

Gets or sets the binding logic for CancelButtonColor

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

Property Value

IOneOrTwoWayBind<TViewModel, Color>

HorizontalTextAlignment

Gets or sets the binding logic for HorizontalTextAlignment

public IOneOrTwoWayBind<TViewModel, TextAlignment>? HorizontalTextAlignment { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, TextAlignment>

SearchCommand

Gets or sets the binding logic for SearchCommand

public IOneOrTwoWayBind<TViewModel, ICommand>? SearchCommand { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

SearchCommandParameter

Gets or sets the binding logic for SearchCommandParameter

public IOneOrTwoWayBind<TViewModel, object>? SearchCommandParameter { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, object>

VerticalTextAlignment

Gets or sets the binding logic for VerticalTextAlignment

public IOneOrTwoWayBind<TViewModel, TextAlignment>? VerticalTextAlignment { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, TextAlignment>

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.