Table of Contents

Class RelationshipOptionsField<T>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
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

surface ISurface
caption string
choices Func<IEntityContext, IEntityQuery<T>>

RelationshipOptionsField(ISurface, string, Func<IEntityContext, IQueryable<T>>)

public RelationshipOptionsField(ISurface surface, string caption, Func<IEntityContext, IQueryable<T>> choices)

Parameters

surface ISurface
caption string
choices Func<IEntityContext, IQueryable<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

DoUpdateChoices

public ICommand DoUpdateChoices { get; }

Property Value

ICommand

FilteredChoices

public IReadOnlyCollection<T>? FilteredChoices { get; }

Property Value

IReadOnlyCollection<T>

HasChanges

public override bool HasChanges { get; }

Property Value

bool

LoadedItems

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

Value

The lensed value which this field is modelling

public override IEnumerable<Guid> Value { get; set; }

Property Value

IEnumerable<Guid>

Methods

Clear()

public void Clear()

SelectAsync()

public Task SelectAsync()

Returns

Task

SetViewFromModelAndNotifyInternal()

protected override void SetViewFromModelAndNotifyInternal()

UpdateChoicesAsync()

public Task UpdateChoicesAsync()

Returns

Task