Table of Contents

Class AbstractUnboundDatePickerControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the DatePicker control.

public abstract class AbstractUnboundDatePickerControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : DatePicker

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

CharacterSpacing

Gets or sets the binding logic for CharacterSpacing

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Date

Gets or sets the binding logic for Date

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime>

FontAttributes

Gets or sets the binding logic for FontAttributes

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

Property Value

IOneOrTwoWayBind<TViewModel, FontAttributes>

FontAutoScalingEnabled

Gets or sets the binding logic for FontAutoScalingEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

FontFamily

Gets or sets the binding logic for FontFamily

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

FontSize

Gets or sets the binding logic for FontSize

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Format

Gets or sets the binding logic for Format

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

MaximumDate

Gets or sets the binding logic for MaximumDate

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime>

MinimumDate

Gets or sets the binding logic for MinimumDate

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime>

TextColor

Gets or sets the binding logic for TextColor

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

Property Value

IOneOrTwoWayBind<TViewModel, Color>

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.