Class AbstractUnboundTextBoxControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the TextBox control.
public abstract class AbstractUnboundTextBoxControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundTextBoxBaseControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : TextBox
Type Parameters
TView
TViewModel
TControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundTextBoxBaseControlBindingModel<TView, TViewModel, TControl>AbstractUnboundTextBoxControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundTextBoxControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundTextBoxControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundTextBoxControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpression
Expression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
CaretIndex
Gets or sets the binding logic for CaretIndex
public IOneOrTwoWayBind<TViewModel, int>? CaretIndex { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
CharacterCasing
Gets or sets the binding logic for CharacterCasing
public IOneOrTwoWayBind<TViewModel, CharacterCasing>? CharacterCasing { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, CharacterCasing>
LineCount
Gets or sets the binding logic for LineCount
public IOneWayBind<TViewModel, int>? LineCount { get; init; }
Property Value
- IOneWayBind<TViewModel, int>
MaxLength
Gets or sets the binding logic for MaxLength
public IOneOrTwoWayBind<TViewModel, int>? MaxLength { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
MaxLines
Gets or sets the binding logic for MaxLines
public IOneOrTwoWayBind<TViewModel, int>? MaxLines { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
MinLines
Gets or sets the binding logic for MinLines
public IOneOrTwoWayBind<TViewModel, int>? MinLines { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
SelectedText
Gets or sets the binding logic for SelectedText
public IOneOrTwoWayBind<TViewModel, string>? SelectedText { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
SelectionLength
Gets or sets the binding logic for SelectionLength
public IOneOrTwoWayBind<TViewModel, int>? SelectionLength { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
SelectionStart
Gets or sets the binding logic for SelectionStart
public IOneOrTwoWayBind<TViewModel, int>? SelectionStart { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
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>
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.