Table of Contents

Class AbstractUnboundAccessTextControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the AccessText control.

public abstract class AbstractUnboundAccessTextControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : AccessText

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AccessKey

Gets or sets the binding logic for AccessKey

public IOneWayBind<TViewModel, char>? AccessKey { get; init; }

Property Value

IOneWayBind<TViewModel, char>

Background

Gets or sets the binding logic for Background

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

BaselineOffset

Gets or sets the binding logic for BaselineOffset

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

FontFamily

Gets or sets the binding logic for FontFamily

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

Property Value

IOneOrTwoWayBind<TViewModel, FontFamily>

FontSize

Gets or sets the binding logic for FontSize

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

FontStretch

Gets or sets the binding logic for FontStretch

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

Property Value

IOneOrTwoWayBind<TViewModel, FontStretch>

FontStyle

Gets or sets the binding logic for FontStyle

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

Property Value

IOneOrTwoWayBind<TViewModel, FontStyle>

FontWeight

Gets or sets the binding logic for FontWeight

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

Property Value

IOneOrTwoWayBind<TViewModel, FontWeight>

Foreground

Gets or sets the binding logic for Foreground

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

LineHeight

Gets or sets the binding logic for LineHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

LineStackingStrategy

Gets or sets the binding logic for LineStackingStrategy

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

Property Value

IOneOrTwoWayBind<TViewModel, LineStackingStrategy>

Text

Gets or sets the binding logic for Text

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

TextAlignment

Gets or sets the binding logic for TextAlignment

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

Property Value

IOneOrTwoWayBind<TViewModel, TextAlignment>

TextDecorations

Gets or sets the binding logic for TextDecorations

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

Property Value

IOneOrTwoWayBind<TViewModel, TextDecorationCollection>

TextEffects

Gets or sets the binding logic for TextEffects

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

Property Value

IOneOrTwoWayBind<TViewModel, TextEffectCollection>

TextTrimming

Gets or sets the binding logic for TextTrimming

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

Property Value

IOneOrTwoWayBind<TViewModel, TextTrimming>

TextWrapping

Gets or sets the binding logic for TextWrapping

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

Property Value

IOneOrTwoWayBind<TViewModel, TextWrapping>

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.