Table of Contents

Class AbstractUnboundImageButtonControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Maui.Maui.ViewToViewModelBindings.Microsoft.Maui.Controls
Assembly
Whipstaff.Maui.dll

A class that contains Viewmodel bindings for the ImageButton control.

public abstract class AbstractUnboundImageButtonControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ImageButton

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundImageButtonControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

Aspect

Gets or sets the binding logic for Aspect

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

Property Value

IOneOrTwoWayBind<TViewModel, Aspect>

BorderColor

Gets or sets the binding logic for BorderColor

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

Property Value

IOneOrTwoWayBind<TViewModel, Color>

BorderWidth

Gets or sets the binding logic for BorderWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Command

Gets or sets the binding logic for Command

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

Property Value

IOneOrTwoWayBind<TViewModel, ICommand>

CommandParameter

Gets or sets the binding logic for CommandParameter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

CornerRadius

Gets or sets the binding logic for CornerRadius

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

Property Value

IOneOrTwoWayBind<TViewModel, int>

IsLoading

Gets or sets the binding logic for IsLoading

public IOneWayBind<TViewModel, bool>? IsLoading { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

IsOpaque

Gets or sets the binding logic for IsOpaque

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsPressed

Gets or sets the binding logic for IsPressed

public IOneWayBind<TViewModel, bool>? IsPressed { get; init; }

Property Value

IOneWayBind<TViewModel, bool>

Padding

Gets or sets the binding logic for Padding

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

Property Value

IOneOrTwoWayBind<TViewModel, Thickness>

Source

Gets or sets the binding logic for Source

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

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.