Table of Contents

Class AbstractUnboundComboBoxControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the ComboBox control.

public abstract class AbstractUnboundComboBoxControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundSelectorControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ComboBox

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundSelectorControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundComboBoxControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

IsDropDownOpen

Gets or sets the binding logic for IsDropDownOpen

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsEditable

Gets or sets the binding logic for IsEditable

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsReadOnly

Gets or sets the binding logic for IsReadOnly

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsSelectionBoxHighlighted

Gets or sets the binding logic for IsSelectionBoxHighlighted

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

Property Value

IOneWayBind<TViewModel, bool>

MaxDropDownHeight

Gets or sets the binding logic for MaxDropDownHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

SelectionBoxItem

Gets or sets the binding logic for SelectionBoxItem

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

Property Value

IOneWayBind<TViewModel, object>

SelectionBoxItemStringFormat

Gets or sets the binding logic for SelectionBoxItemStringFormat

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

Property Value

IOneWayBind<TViewModel, string>

SelectionBoxItemTemplate

Gets or sets the binding logic for SelectionBoxItemTemplate

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

Property Value

IOneWayBind<TViewModel, DataTemplate>

ShouldPreserveUserEnteredPrefix

Gets or sets the binding logic for ShouldPreserveUserEnteredPrefix

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

StaysOpenOnEdit

Gets or sets the binding logic for StaysOpenOnEdit

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

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.