Table of Contents

Class AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the Window control.

public abstract class AbstractUnboundWindowControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundNavigableElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Window

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

DisplayDensity

Gets or sets the binding logic for DisplayDensity

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

Property Value

IOneWayBind<TViewModel, float>

FlowDirection

Gets or sets the binding logic for FlowDirection

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

Property Value

IOneOrTwoWayBind<TViewModel, FlowDirection>

Height

Gets or sets the binding logic for Height

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MaximumHeight

Gets or sets the binding logic for MaximumHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MaximumWidth

Gets or sets the binding logic for MaximumWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MinimumHeight

Gets or sets the binding logic for MinimumHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MinimumWidth

Gets or sets the binding logic for MinimumWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Overlays

Gets or sets the binding logic for Overlays

public IOneWayBind<TViewModel, IReadOnlyCollection<IWindowOverlay>>? Overlays { get; init; }

Property Value

IOneWayBind<TViewModel, IReadOnlyCollection<IWindowOverlay>>

Page

Gets or sets the binding logic for Page

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

Property Value

IOneOrTwoWayBind<TViewModel, Page>

Title

Gets or sets the binding logic for Title

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

VisualDiagnosticsOverlay

Gets or sets the binding logic for VisualDiagnosticsOverlay

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

Property Value

IOneWayBind<TViewModel, IVisualDiagnosticsOverlay>

Width

Gets or sets the binding logic for Width

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

X

Gets or sets the binding logic for X

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Y

Gets or sets the binding logic for Y

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

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.