Table of Contents

Class AbstractUnboundDropGestureRecognizerControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the DropGestureRecognizer control.

public abstract class AbstractUnboundDropGestureRecognizerControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundGestureRecognizerControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : DropGestureRecognizer

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AllowDrop

Gets or sets the binding logic for AllowDrop

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

DragLeaveCommand

Gets or sets the binding logic for DragLeaveCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

DragLeaveCommandParameter

Gets or sets the binding logic for DragLeaveCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

DragOverCommand

Gets or sets the binding logic for DragOverCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

DragOverCommandParameter

Gets or sets the binding logic for DragOverCommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

DropCommand

Gets or sets the binding logic for DropCommand

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

DropCommandParameter

Gets or sets the binding logic for DropCommandParameter

public IOneOrTwoWayBind<TViewModel, object>? DropCommandParameter { 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.