Table of Contents

Class AbstractUnboundShapeControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the Shape control.

public abstract class AbstractUnboundShapeControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Shape

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

Aspect

Gets or sets the binding logic for Aspect

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

Property Value

IOneOrTwoWayBind<TViewModel, Stretch>

Fill

Gets or sets the binding logic for Fill

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

Stroke

Gets or sets the binding logic for Stroke

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

StrokeDashArray

Gets or sets the binding logic for StrokeDashArray

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

Property Value

IOneOrTwoWayBind<TViewModel, DoubleCollection>

StrokeDashOffset

Gets or sets the binding logic for StrokeDashOffset

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

StrokeDashPattern

Gets or sets the binding logic for StrokeDashPattern

public IOneWayBind<TViewModel, float[]>? StrokeDashPattern { get; init; }

Property Value

IOneWayBind<TViewModel, float[]>

StrokeLineCap

Gets or sets the binding logic for StrokeLineCap

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

Property Value

IOneOrTwoWayBind<TViewModel, PenLineCap>

StrokeLineJoin

Gets or sets the binding logic for StrokeLineJoin

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

Property Value

IOneOrTwoWayBind<TViewModel, PenLineJoin>

StrokeMiterLimit

Gets or sets the binding logic for StrokeMiterLimit

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

StrokeThickness

Gets or sets the binding logic for StrokeThickness

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

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.