Table of Contents

Class AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the Element control.

public abstract class AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl> : AbstractControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Element

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AutomationId

Gets or sets the binding logic for AutomationId

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

ClassId

Gets or sets the binding logic for ClassId

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

EffectControlProvider

Gets or sets the binding logic for EffectControlProvider

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

Property Value

IOneOrTwoWayBind<TViewModel, IEffectControlProvider>

Effects

Gets or sets the binding logic for Effects

public IOneWayBind<TViewModel, IList<Effect>>? Effects { get; init; }

Property Value

IOneWayBind<TViewModel, IList<Effect>>

Handler

Gets or sets the binding logic for Handler

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

Property Value

IOneOrTwoWayBind<TViewModel, IElementHandler>

Id

Gets or sets the binding logic for Id

public IOneWayBind<TViewModel, Guid>? Id { get; init; }

Property Value

IOneWayBind<TViewModel, Guid>

Parent

Gets or sets the binding logic for Parent

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

Property Value

IOneOrTwoWayBind<TViewModel, Element>

RealParent

Gets or sets the binding logic for RealParent

public IOneWayBind<TViewModel, Element>? RealParent { get; init; }

Property Value

IOneWayBind<TViewModel, Element>

StyleId

Gets or sets the binding logic for StyleId

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

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.