Class AbstractUnboundDragGestureRecognizerControlBindingModel<TView, TViewModel, TControl>
- 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
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundGestureRecognizerControlBindingModel<TView, TViewModel, TControl>AbstractUnboundDragGestureRecognizerControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundDragGestureRecognizerControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundDragGestureRecognizerControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundDragGestureRecognizerControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<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
viewTViewThe view.
viewModelTViewModelThe viewmodel.
registerForDisposalActionAction<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
viewTViewThe view.
viewModelTViewModelThe viewmodel.
compositeDisposableCompositeDisposableThe disposable container to register disposals against.