Class AbstractUnboundImageControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the Image control.
public abstract class AbstractUnboundImageControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Image
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundImageControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundImageControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundImageControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundImageControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
Source
Gets or sets the binding logic for Source
public IOneOrTwoWayBind<TViewModel, ImageSource>? Source { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ImageSource>
Stretch
Gets or sets the binding logic for Stretch
public IOneOrTwoWayBind<TViewModel, Stretch>? Stretch { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Stretch>
StretchDirection
Gets or sets the binding logic for StretchDirection
public IOneOrTwoWayBind<TViewModel, StretchDirection>? StretchDirection { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, StretchDirection>
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.