Class AbstractUnboundTextBlockControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the TextBlock control.
public abstract class AbstractUnboundTextBlockControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : TextBlock
Type Parameters
TView
TViewModel
TControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundTextBlockControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundTextBlockControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundTextBlockControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundTextBlockControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpression
Expression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
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>
BreakAfter
Gets or sets the binding logic for BreakAfter
public IOneWayBind<TViewModel, LineBreakCondition>? BreakAfter { get; init; }
Property Value
- IOneWayBind<TViewModel, LineBreakCondition>
BreakBefore
Gets or sets the binding logic for BreakBefore
public IOneWayBind<TViewModel, LineBreakCondition>? BreakBefore { get; init; }
Property Value
- IOneWayBind<TViewModel, LineBreakCondition>
ContentEnd
Gets or sets the binding logic for ContentEnd
public IOneWayBind<TViewModel, TextPointer>? ContentEnd { get; init; }
Property Value
- IOneWayBind<TViewModel, TextPointer>
ContentStart
Gets or sets the binding logic for ContentStart
public IOneWayBind<TViewModel, TextPointer>? ContentStart { get; init; }
Property Value
- IOneWayBind<TViewModel, TextPointer>
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>
Inlines
Gets or sets the binding logic for Inlines
public IOneWayBind<TViewModel, InlineCollection>? Inlines { get; init; }
Property Value
- IOneWayBind<TViewModel, InlineCollection>
IsHyphenationEnabled
Gets or sets the binding logic for IsHyphenationEnabled
public IOneOrTwoWayBind<TViewModel, bool>? IsHyphenationEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
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>
Padding
Gets or sets the binding logic for Padding
public IOneOrTwoWayBind<TViewModel, Thickness>? Padding { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Thickness>
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>
Typography
Gets or sets the binding logic for Typography
public IOneWayBind<TViewModel, Typography>? Typography { get; init; }
Property Value
- IOneWayBind<TViewModel, Typography>
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
TViewThe view.
viewModel
TViewModelThe 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
TViewThe view.
viewModel
TViewModelThe viewmodel.
compositeDisposable
CompositeDisposableThe disposable container to register disposals against.