Class RelationshipOptionsField<T>
public sealed class RelationshipOptionsField<T> : RelationshipOptionsFieldBase, IField<IEnumerable<Guid>>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo where T : IEntity<T>
Type Parameters
T
- Inheritance
-
RelationshipOptionsField<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
RelationshipOptionsField(ISurface, string, Func<IEntityContext, IEntityQuery<T>>?)
public RelationshipOptionsField(ISurface surface, string caption, Func<IEntityContext, IEntityQuery<T>>? choices = null)
Parameters
surfaceISurfacecaptionstringchoicesFunc<IEntityContext, IEntityQuery<T>>
RelationshipOptionsField(ISurface, string, Func<IEntityContext, IQueryable<T>>)
public RelationshipOptionsField(ISurface surface, string caption, Func<IEntityContext, IQueryable<T>> choices)
Parameters
surfaceISurfacecaptionstringchoicesFunc<IEntityContext, IQueryable<T>>
Properties
Count
public int Count { get; }
Property Value
DoClear
public ICommand DoClear { get; }
Property Value
DoSelect
public ICommand DoSelect { get; }
Property Value
DoUpdateChoices
public ICommand DoUpdateChoices { get; }
Property Value
FilteredChoices
public IReadOnlyCollection<T>? FilteredChoices { get; }
Property Value
HasChanges
public override bool HasChanges { get; }
Property Value
LoadedItems
public SetList<T> LoadedItems { get; }
Property Value
- SetList<T>
SearchDelay
public TimeSpan? SearchDelay { get; }
Property Value
SearchText
public string? SearchText { get; set; }
Property Value
Value
The lensed value which this field is modelling
public override IEnumerable<Guid> Value { get; set; }
Property Value
Methods
Clear()
public void Clear()
SelectAsync()
public Task SelectAsync()
Returns
SetViewFromModelAndNotifyInternal()
protected override void SetViewFromModelAndNotifyInternal()
UpdateChoicesAsync()
public Task UpdateChoicesAsync()