Table of Contents

Class AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the MenuItem control.

public abstract class AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundBaseMenuItemControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : MenuItem

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

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>

IconImageSource

Gets or sets the binding logic for IconImageSource

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

IsDestructive

Gets or sets the binding logic for IsDestructive

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsEnabled

Gets or sets the binding logic for IsEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

StyleClass

Gets or sets the binding logic for StyleClass

public IOneOrTwoWayBind<TViewModel, IList<string>>? StyleClass { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, IList<string>>

Text

Gets or sets the binding logic for Text

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

class

Gets or sets the binding logic for class

public IOneOrTwoWayBind<TViewModel, IList<string>>? @class { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, IList<string>>

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.