Table of Contents

Class AbstractUnboundDragGestureRecognizerControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the DragGestureRecognizer control.

public abstract class AbstractUnboundDragGestureRecognizerControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundGestureRecognizerControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : DragGestureRecognizer

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

CanDrag

Gets or sets the binding logic for CanDrag

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

DragStartingCommand

Gets or sets the binding logic for DragStartingCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

DragStartingCommandParameter

Gets or sets the binding logic for DragStartingCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

DropCompletedCommand

Gets or sets the binding logic for DropCompletedCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

DropCompletedCommandParameter

Gets or sets the binding logic for DropCompletedCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

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.