Table of Contents

Class AbstractUnboundShellControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the Shell control.

public abstract class AbstractUnboundShellControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundPageControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Shell

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

Current

Gets or sets the binding logic for Current

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

Property Value

IOneWayBind<TViewModel, Shell>

CurrentItem

Gets or sets the binding logic for CurrentItem

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

Property Value

IOneOrTwoWayBind<TViewModel, ShellItem>

CurrentPage

Gets or sets the binding logic for CurrentPage

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

Property Value

IOneWayBind<TViewModel, Page>

CurrentState

Gets or sets the binding logic for CurrentState

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

Property Value

IOneWayBind<TViewModel, ShellNavigationState>

FlyoutBackdrop

Gets or sets the binding logic for FlyoutBackdrop

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

FlyoutBackground

Gets or sets the binding logic for FlyoutBackground

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

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

FlyoutBackgroundColor

Gets or sets the binding logic for FlyoutBackgroundColor

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

Property Value

IOneOrTwoWayBind<TViewModel, Color>

FlyoutBackgroundImage

Gets or sets the binding logic for FlyoutBackgroundImage

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

FlyoutBackgroundImageAspect

Gets or sets the binding logic for FlyoutBackgroundImageAspect

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

Property Value

IOneOrTwoWayBind<TViewModel, Aspect>

FlyoutBehavior

Gets or sets the binding logic for FlyoutBehavior

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

Property Value

IOneOrTwoWayBind<TViewModel, FlyoutBehavior>

FlyoutContent

Gets or sets the binding logic for FlyoutContent

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

FlyoutContentTemplate

Gets or sets the binding logic for FlyoutContentTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

FlyoutFooter

Gets or sets the binding logic for FlyoutFooter

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

FlyoutFooterTemplate

Gets or sets the binding logic for FlyoutFooterTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

FlyoutHeader

Gets or sets the binding logic for FlyoutHeader

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

FlyoutHeaderBehavior

Gets or sets the binding logic for FlyoutHeaderBehavior

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

Property Value

IOneOrTwoWayBind<TViewModel, FlyoutHeaderBehavior>

FlyoutHeaderTemplate

Gets or sets the binding logic for FlyoutHeaderTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

FlyoutHeight

Gets or sets the binding logic for FlyoutHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

FlyoutIcon

Gets or sets the binding logic for FlyoutIcon

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

Property Value

IOneOrTwoWayBind<TViewModel, ImageSource>

FlyoutIsPresented

Gets or sets the binding logic for FlyoutIsPresented

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

FlyoutItems

Gets or sets the binding logic for FlyoutItems

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

Property Value

IOneWayBind<TViewModel, IEnumerable>

FlyoutVerticalScrollMode

Gets or sets the binding logic for FlyoutVerticalScrollMode

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

Property Value

IOneOrTwoWayBind<TViewModel, ScrollMode>

FlyoutWidth

Gets or sets the binding logic for FlyoutWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

ItemTemplate

Gets or sets the binding logic for ItemTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

Items

Gets or sets the binding logic for Items

public IOneWayBind<TViewModel, IList<ShellItem>>? Items { get; init; }

Property Value

IOneWayBind<TViewModel, IList<ShellItem>>

MenuItemTemplate

Gets or sets the binding logic for MenuItemTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

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.