Class EnumInlineCollectionField<T>
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
-
FieldBase<IEntitySet<T>>EnumInlineCollectionField<T>
- Implements
-
IField<IEntitySet<T>>
- 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
surfaceISurfacelabelstringchoicesIEntityQuery<T>boundSetIEntitySet<T>maximumChoiceCountint?filterFilterChoices<T>canNavigateOverridebool?
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
surfaceISurfacelabelstringchoicesIQueryable<T>boundSetIEntitySet<T>maximumChoiceCountint?filterFilterChoices<T>canNavigateOverridebool?
EnumInlineCollectionField(ISurface, string, IEntitySet<T>, EnumInlineCollectionOptions<T>?)
public EnumInlineCollectionField(ISurface surface, string label, IEntitySet<T> boundSet, EnumInlineCollectionOptions<T>? options = null)
Parameters
surfaceISurfacelabelstringboundSetIEntitySet<T>optionsEnumInlineCollectionOptions<T>
EnumInlineCollectionField(ISurface, EntityCollectionProperty<T>, EnumInlineCollectionOptions<T>?)
public EnumInlineCollectionField(ISurface surface, EntityCollectionProperty<T> boundSet, EnumInlineCollectionOptions<T>? options = null)
Parameters
surfaceISurfaceboundSetEntityCollectionProperty<T>optionsEnumInlineCollectionOptions<T>
Fields
BoundSet
protected readonly IEntitySet<T> BoundSet
Field Value
- IEntitySet<T>
Options
protected readonly EnumInlineCollectionOptions<T> Options
Field Value
Properties
Count
public int Count { get; }
Property Value
DoClear
public ICommand DoClear { get; }
Property Value
DoSelect
public ICommand DoSelect { get; }
Property Value
DoSelectorMode
public ICommand DoSelectorMode { get; }
Property Value
DoUpdateChoices
public ICommand DoUpdateChoices { get; }
Property Value
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
HasChanges
public override bool HasChanges { get; }
Property Value
IsNavigable
public bool IsNavigable { get; }
Property Value
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
SearchText
public string? SearchText { get; set; }
Property Value
Selection
public string Selection { get; }
Property Value
ShowSelector
public bool ShowSelector { get; set; }
Property Value
Text
Text summary of the field's value (for on screen summaries)
public override string Text { get; }
Property Value
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
modalSetIEntitySet<T>
Returns
- IField<IEntitySet<T>>
SelectAsync()
Opens the popout modal with EnumSectionedCollectionField (checkboxes).
public Task SelectAsync()
Returns
SetViewFromModelAndNotifyInternal()
protected override void SetViewFromModelAndNotifyInternal()
UpdateChoicesAsync()
Updates filtered choices for the MultiZomboBox dropdown.
public Task UpdateChoicesAsync()