Table of Contents

Class AbstractUnboundItemsControlControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the ItemsControl control.

public abstract class AbstractUnboundItemsControlControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ItemsControl

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AlternationCount

Gets or sets the binding logic for AlternationCount

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

Property Value

IOneOrTwoWayBind<TViewModel, int>

DisplayMemberPath

Gets or sets the binding logic for DisplayMemberPath

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

GroupStyle

Gets or sets the binding logic for GroupStyle

public IOneWayBind<TViewModel, ObservableCollection<GroupStyle>>? GroupStyle { get; init; }

Property Value

IOneWayBind<TViewModel, ObservableCollection<GroupStyle>>

GroupStyleSelector

Gets or sets the binding logic for GroupStyleSelector

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

Property Value

IOneOrTwoWayBind<TViewModel, GroupStyleSelector>

HasItems

Gets or sets the binding logic for HasItems

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

Property Value

IOneWayBind<TViewModel, bool>

IsGrouping

Gets or sets the binding logic for IsGrouping

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

Property Value

IOneWayBind<TViewModel, bool>

IsTextSearchCaseSensitive

Gets or sets the binding logic for IsTextSearchCaseSensitive

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

IsTextSearchEnabled

Gets or sets the binding logic for IsTextSearchEnabled

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

ItemBindingGroup

Gets or sets the binding logic for ItemBindingGroup

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

Property Value

IOneOrTwoWayBind<TViewModel, BindingGroup>

ItemContainerGenerator

Gets or sets the binding logic for ItemContainerGenerator

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

Property Value

IOneWayBind<TViewModel, ItemContainerGenerator>

ItemContainerStyle

Gets or sets the binding logic for ItemContainerStyle

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

Property Value

IOneOrTwoWayBind<TViewModel, Style>

ItemContainerStyleSelector

Gets or sets the binding logic for ItemContainerStyleSelector

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

Property Value

IOneOrTwoWayBind<TViewModel, StyleSelector>

ItemStringFormat

Gets or sets the binding logic for ItemStringFormat

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

ItemTemplate

Gets or sets the binding logic for ItemTemplate

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplate>

ItemTemplateSelector

Gets or sets the binding logic for ItemTemplateSelector

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

Property Value

IOneOrTwoWayBind<TViewModel, DataTemplateSelector>

Items

Gets or sets the binding logic for Items

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

Property Value

IOneWayBind<TViewModel, ItemCollection>

ItemsPanel

Gets or sets the binding logic for ItemsPanel

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

Property Value

IOneOrTwoWayBind<TViewModel, ItemsPanelTemplate>

ItemsSource

Gets or sets the binding logic for ItemsSource

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

Property Value

IOneOrTwoWayBind<TViewModel, IEnumerable>

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.