Class ValueSectionedCollectionField<T, TView>
public class ValueSectionedCollectionField<T, TView> : SectionedCollectionFieldBase<T, IScreenModel, TView>, IField<IEntitySet<T>>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField where T : IEntity<T>
Type Parameters
TTView
- Inheritance
-
FieldBase<IEntitySet<T>>FieldBase<IEntitySet<T>, TView>SectionedCollectionFieldBase<T, IScreenModel, TView>ValueSectionedCollectionField<T, TView>
- Implements
-
IField<IEntitySet<T>>
- Derived
- Inherited Members
- Extension Methods
Constructors
ValueSectionedCollectionField(ISurface, string, IEntitySet<T>, ValueSectionedCollectionOptions<T>?)
public ValueSectionedCollectionField(ISurface surface, string label, IEntitySet<T> boundSet, ValueSectionedCollectionOptions<T>? options = null)
Parameters
surfaceISurfacelabelstringboundSetIEntitySet<T>optionsValueSectionedCollectionOptions<T>
ValueSectionedCollectionField(ISurface, EntityCollectionProperty<T>, ValueSectionedCollectionOptions<T>?)
public ValueSectionedCollectionField(ISurface surface, EntityCollectionProperty<T> boundSet, ValueSectionedCollectionOptions<T>? options = null)
Parameters
surfaceISurfaceboundSetEntityCollectionProperty<T>optionsValueSectionedCollectionOptions<T>
Properties
AddButtonText
protected string AddButtonText { get; }
Property Value
CanAdd
public virtual bool CanAdd { get; }
Property Value
DoAdd
public ShellCommand DoAdd { 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 ("").
HasChanges
public override bool HasChanges { get; }
Property Value
IsContentEditable
public bool? IsContentEditable { get; }
Property Value
- bool?
Methods
Add()
public virtual Task Add()
Returns
CreateSubscreen(IEntitySet<T>)
protected override IScreenModel CreateSubscreen(IEntitySet<T> entitySet)
Parameters
entitySetIEntitySet<T>
Returns
Delete(T)
public virtual Task Delete(T entity)
Parameters
entityT