Table of Contents

Class EnumInlineCollectionField<T>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll

Collection field with quick multiselection and modal small-set selection.

public class EnumInlineCollectionField<T> : FieldBase<IEntitySet<T>, EnumInlineCollectionView>, IField<IEntitySet<T>>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo where T : IEntity<T>

Type Parameters

T
Inheritance
EnumInlineCollectionField<T>
Implements
Inherited Members
Extension Methods

Constructors

EnumInlineCollectionField(ISurface, string, IEntityQuery<T>, IEntitySet<T>?, int?, FilterChoices<T>?, bool?)

[Obsolete("Use one of the constructors with an options parameter")]
public EnumInlineCollectionField(ISurface surface, string label, IEntityQuery<T> choices, IEntitySet<T>? boundSet = null, int? maximumChoiceCount = null, FilterChoices<T>? filter = null, bool? canNavigateOverride = null)

Parameters

surface ISurface
label string
choices IEntityQuery<T>
boundSet IEntitySet<T>
maximumChoiceCount int?
filter FilterChoices<T>
canNavigateOverride bool?

EnumInlineCollectionField(ISurface, string, IQueryable<T>, IEntitySet<T>?, int?, FilterChoices<T>?, bool?)

[Obsolete("Use one of the constructors with an options parameter")]
public EnumInlineCollectionField(ISurface surface, string label, IQueryable<T> choices, IEntitySet<T>? boundSet = null, int? maximumChoiceCount = null, FilterChoices<T>? filter = null, bool? canNavigateOverride = null)

Parameters

surface ISurface
label string
choices IQueryable<T>
boundSet IEntitySet<T>
maximumChoiceCount int?
filter FilterChoices<T>
canNavigateOverride bool?

EnumInlineCollectionField(ISurface, string, IEntitySet<T>, EnumInlineCollectionOptions<T>?)

public EnumInlineCollectionField(ISurface surface, string label, IEntitySet<T> boundSet, EnumInlineCollectionOptions<T>? options = null)

Parameters

surface ISurface
label string
boundSet IEntitySet<T>
options EnumInlineCollectionOptions<T>

EnumInlineCollectionField(ISurface, EntityCollectionProperty<T>, EnumInlineCollectionOptions<T>?)

public EnumInlineCollectionField(ISurface surface, EntityCollectionProperty<T> boundSet, EnumInlineCollectionOptions<T>? options = null)

Parameters

surface ISurface
boundSet EntityCollectionProperty<T>
options EnumInlineCollectionOptions<T>

Fields

BoundSet

protected readonly IEntitySet<T> BoundSet

Field Value

IEntitySet<T>

Options

protected readonly EnumInlineCollectionOptions<T> Options

Field Value

EnumInlineCollectionOptions<T>

Properties

Count

public int Count { get; }

Property Value

int

DoClear

public ICommand DoClear { get; }

Property Value

ICommand

DoSelect

public ICommand DoSelect { get; }

Property Value

ICommand

DoSelectorMode

public ICommand DoSelectorMode { get; }

Property Value

ICommand

DoUpdateChoices

public ICommand DoUpdateChoices { get; }

Property Value

ICommand

Error

Gets an error message indicating what is wrong with this object.

public override string Error { get; }

Property Value

string

An error message indicating what is wrong with this object. The default is an empty string ("").

FilteredChoices

public IReadOnlyCollection<T>? FilteredChoices { get; }

Property Value

IReadOnlyCollection<T>

HasChanges

public override bool HasChanges { get; }

Property Value

bool

IsNavigable

public bool IsNavigable { get; }

Property Value

bool

LoadedItems

Adapter for WPF binding to the loaded set. Null until the bound set is loaded. Handles entity context cloning on add and ID-based matching for contains/remove.

public SetList<T>? LoadedItems { get; }

Property Value

SetList<T>

SearchDelay

public TimeSpan? SearchDelay { get; }

Property Value

TimeSpan?

SearchText

public string? SearchText { get; set; }

Property Value

string

Selection

public string Selection { get; }

Property Value

string

ShowSelector

public bool ShowSelector { get; set; }

Property Value

bool

Text

Text summary of the field's value (for on screen summaries)

public override string Text { get; }

Property Value

string

Value

The lensed value which this field is modelling

public override IEntitySet<T> Value { get; set; }

Property Value

IEntitySet<T>

Methods

Clear()

public void Clear()

CreateSubfield(IEntitySet<T>)

Creates the popout modal field - uses EnumSectionedCollectionField for checkbox display.

public IField<IEntitySet<T>> CreateSubfield(IEntitySet<T> modalSet)

Parameters

modalSet IEntitySet<T>

Returns

IField<IEntitySet<T>>

SelectAsync()

Opens the popout modal with EnumSectionedCollectionField (checkboxes).

public Task SelectAsync()

Returns

Task

SetViewFromModelAndNotifyInternal()

protected override void SetViewFromModelAndNotifyInternal()

UpdateChoicesAsync()

Updates filtered choices for the MultiZomboBox dropdown.

public Task UpdateChoicesAsync()

Returns

Task