Table of Contents

Class AbstractUnboundCarouselViewControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the CarouselView control.

public abstract class AbstractUnboundCarouselViewControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundItemsViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : CarouselView

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AnimateCurrentItemChanges

Gets or sets the binding logic for AnimateCurrentItemChanges

public IOneWayBind<TViewModel, bool>? AnimateCurrentItemChanges { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

AnimatePositionChanges

Gets or sets the binding logic for AnimatePositionChanges

public IOneWayBind<TViewModel, bool>? AnimatePositionChanges { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

CurrentItem

Gets or sets the binding logic for CurrentItem

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

CurrentItemChangedCommand

Gets or sets the binding logic for CurrentItemChangedCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

CurrentItemChangedCommandParameter

Gets or sets the binding logic for CurrentItemChangedCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

IndicatorView

Gets or sets the binding logic for IndicatorView

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

Property Value

IOneOrTwoWayBind<TViewModel, IndicatorView>

IsBounceEnabled

Gets or sets the binding logic for IsBounceEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsDragging

Gets or sets the binding logic for IsDragging

public IOneWayBind<TViewModel, bool>? IsDragging { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

IsScrollAnimated

Gets or sets the binding logic for IsScrollAnimated

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsScrolling

Gets or sets the binding logic for IsScrolling

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsSwipeEnabled

Gets or sets the binding logic for IsSwipeEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

ItemsLayout

Gets or sets the binding logic for ItemsLayout

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

Property Value

IOneOrTwoWayBind<TViewModel, LinearItemsLayout>

Loop

Gets or sets the binding logic for Loop

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

PeekAreaInsets

Gets or sets the binding logic for PeekAreaInsets

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

Property Value

IOneOrTwoWayBind<TViewModel, Thickness>

Position

Gets or sets the binding logic for Position

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

Property Value

IOneOrTwoWayBind<TViewModel, int>

PositionChangedCommand

Gets or sets the binding logic for PositionChangedCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

PositionChangedCommandParameter

Gets or sets the binding logic for PositionChangedCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

VisibleViews

Gets or sets the binding logic for VisibleViews

public IOneWayBind<TViewModel, ObservableCollection<View>>? VisibleViews { get; init; }

Property Value

IOneWayBind<TViewModel, ObservableCollection<View>>

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.