Table of Contents

Class AbstractUnboundBaseShellItemControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the BaseShellItem control.

public abstract class AbstractUnboundBaseShellItemControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundNavigableElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : BaseShellItem

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

FlyoutIcon

Gets or sets the binding logic for FlyoutIcon

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

FlyoutItemIsVisible

Gets or sets the binding logic for FlyoutItemIsVisible

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Icon

Gets or sets the binding logic for Icon

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

IsChecked

Gets or sets the binding logic for IsChecked

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

Property Value

IOneWayBind<TViewModel, bool>

IsEnabled

Gets or sets the binding logic for IsEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsVisible

Gets or sets the binding logic for IsVisible

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Route

Gets or sets the binding logic for Route

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

Title

Gets or sets the binding logic for Title

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

Window

Gets or sets the binding logic for Window

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

Property Value

IOneWayBind<TViewModel, Window>

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.