Table of Contents

Class AbstractUnboundShapeControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Wpf.ViewToViewModelBindings.System.Windows.Shapes
Assembly
Whipstaff.Wpf.dll

A class that contains Viewmodel bindings for the Shape control.

public abstract class AbstractUnboundShapeControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<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>
AbstractUnboundUIElementControlBindingModel<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

Fill

Gets or sets the binding logic for Fill

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

GeometryTransform

Gets or sets the binding logic for GeometryTransform

public IOneWayBind<TViewModel, Transform>? GeometryTransform { get; init; }

Property Value

IOneWayBind<TViewModel, Transform>

RenderedGeometry

Gets or sets the binding logic for RenderedGeometry

public IOneWayBind<TViewModel, Geometry>? RenderedGeometry { get; init; }

Property Value

IOneWayBind<TViewModel, Geometry>

Stretch

Gets or sets the binding logic for Stretch

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

Property Value

IOneOrTwoWayBind<TViewModel, Stretch>

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>

StrokeDashCap

Gets or sets the binding logic for StrokeDashCap

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

Property Value

IOneOrTwoWayBind<TViewModel, PenLineCap>

StrokeDashOffset

Gets or sets the binding logic for StrokeDashOffset

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

StrokeEndLineCap

Gets or sets the binding logic for StrokeEndLineCap

public IOneOrTwoWayBind<TViewModel, PenLineCap>? StrokeEndLineCap { 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>

StrokeStartLineCap

Gets or sets the binding logic for StrokeStartLineCap

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

Property Value

IOneOrTwoWayBind<TViewModel, PenLineCap>

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.