Table of Contents

Class AbstractUnboundItemsViewControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the ItemsView control.

public abstract class AbstractUnboundItemsViewControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ItemsView

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

EmptyView

Gets or sets the binding logic for EmptyView

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

EmptyViewTemplate

Gets or sets the binding logic for EmptyViewTemplate

public IOneOrTwoWayBind<TViewModel, DataTemplate>? EmptyViewTemplate { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

HorizontalScrollBarVisibility

Gets or sets the binding logic for HorizontalScrollBarVisibility

public IOneOrTwoWayBind<TViewModel, ScrollBarVisibility>? HorizontalScrollBarVisibility { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, ScrollBarVisibility>

ItemTemplate

Gets or sets the binding logic for ItemTemplate

public IOneOrTwoWayBind<TViewModel, DataTemplate>? ItemTemplate { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

ItemsSource

Gets or sets the binding logic for ItemsSource

public IOneOrTwoWayBind<TViewModel, IEnumerable>? ItemsSource { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, IEnumerable>

ItemsUpdatingScrollMode

Gets or sets the binding logic for ItemsUpdatingScrollMode

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

Property Value

IOneOrTwoWayBind<TViewModel, ItemsUpdatingScrollMode>

RemainingItemsThreshold

Gets or sets the binding logic for RemainingItemsThreshold

public IOneOrTwoWayBind<TViewModel, int>? RemainingItemsThreshold { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, int>

RemainingItemsThresholdReachedCommand

Gets or sets the binding logic for RemainingItemsThresholdReachedCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

RemainingItemsThresholdReachedCommandParameter

Gets or sets the binding logic for RemainingItemsThresholdReachedCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

VerticalScrollBarVisibility

Gets or sets the binding logic for VerticalScrollBarVisibility

public IOneOrTwoWayBind<TViewModel, ScrollBarVisibility>? VerticalScrollBarVisibility { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, ScrollBarVisibility>

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.