Table of Contents

Class AbstractUnboundDatePickerControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Wpf.ViewToViewModelBindings.System.Windows.Controls
Assembly
Whipstaff.Wpf.dll

A class that contains Viewmodel bindings for the DatePicker control.

public abstract class AbstractUnboundDatePickerControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundControlControlBindingModel<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>
AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundControlControlBindingModel<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

BlackoutDates

Gets or sets the binding logic for BlackoutDates

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

Property Value

IOneWayBind<TViewModel, CalendarBlackoutDatesCollection>

CalendarStyle

Gets or sets the binding logic for CalendarStyle

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

Property Value

IOneOrTwoWayBind<TViewModel, Style>

DisplayDate

Gets or sets the binding logic for DisplayDate

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime>

DisplayDateEnd

Gets or sets the binding logic for DisplayDateEnd

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime?>

DisplayDateStart

Gets or sets the binding logic for DisplayDateStart

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime?>

FirstDayOfWeek

Gets or sets the binding logic for FirstDayOfWeek

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

Property Value

IOneOrTwoWayBind<TViewModel, DayOfWeek>

IsDropDownOpen

Gets or sets the binding logic for IsDropDownOpen

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsTodayHighlighted

Gets or sets the binding logic for IsTodayHighlighted

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

SelectedDate

Gets or sets the binding logic for SelectedDate

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

Property Value

IOneOrTwoWayBind<TViewModel, DateTime?>

SelectedDateFormat

Gets or sets the binding logic for SelectedDateFormat

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

Property Value

IOneOrTwoWayBind<TViewModel, DatePickerFormat>

Text

Gets or sets the binding logic for Text

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

Property Value

IOneOrTwoWayBind<TViewModel, 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.