Class AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the Control control.
public abstract class AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Control
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundControlControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundControlControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<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>
BorderBrush
Gets or sets the binding logic for BorderBrush
public IOneOrTwoWayBind<TViewModel, Brush>? BorderBrush { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Brush>
BorderThickness
Gets or sets the binding logic for BorderThickness
public IOneOrTwoWayBind<TViewModel, Thickness>? BorderThickness { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Thickness>
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>
HorizontalContentAlignment
Gets or sets the binding logic for HorizontalContentAlignment
public IOneOrTwoWayBind<TViewModel, HorizontalAlignment>? HorizontalContentAlignment { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, HorizontalAlignment>
IsTabStop
Gets or sets the binding logic for IsTabStop
public IOneOrTwoWayBind<TViewModel, bool>? IsTabStop { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
Padding
Gets or sets the binding logic for Padding
public IOneOrTwoWayBind<TViewModel, Thickness>? Padding { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Thickness>
TabIndex
Gets or sets the binding logic for TabIndex
public IOneOrTwoWayBind<TViewModel, int>? TabIndex { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
Template
Gets or sets the binding logic for Template
public IOneOrTwoWayBind<TViewModel, ControlTemplate>? Template { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ControlTemplate>
VerticalContentAlignment
Gets or sets the binding logic for VerticalContentAlignment
public IOneOrTwoWayBind<TViewModel, VerticalAlignment>? VerticalContentAlignment { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, VerticalAlignment>
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
viewTViewThe view.
viewModelTViewModelThe viewmodel.
registerForDisposalActionAction<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
viewTViewThe view.
viewModelTViewModelThe viewmodel.
compositeDisposableCompositeDisposableThe disposable container to register disposals against.