Class ListValueSectionedCollectionField<T, TView>
public class ListValueSectionedCollectionField<T, TView> : SectionedCollectionFieldBase<T, ListModel<T>, 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, ListModel<T>, TView>ListValueSectionedCollectionField<T, TView>
- Implements
-
IField<IEntitySet<T>>
- Derived
- Inherited Members
- Extension Methods
Constructors
ListValueSectionedCollectionField(ISurface, string, bool, bool, IEntitySet<T>, Action<ListOptions>, IScreenCommand, bool, IEnumerable<IScreenCommand>)
public ListValueSectionedCollectionField(ISurface surface, string label, bool listEditable, bool rowsEditable, IEntitySet<T> boundSet = null, Action<ListOptions> configureList = null, IScreenCommand addCommand = null, bool suppressRemoveCommand = false, IEnumerable<IScreenCommand> otherCommands = null)
Parameters
surfaceISurfacelabelstringlistEditableboolrowsEditableboolboundSetIEntitySet<T>configureListAction<ListOptions>addCommandIScreenCommandsuppressRemoveCommandboolotherCommandsIEnumerable<IScreenCommand>
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
IsEditable
public override bool IsEditable { get; }
Property Value
Methods
Add()
public virtual Task Add()
Returns
CreateSubcontroller(IEntitySet<T>, Action<ListOptions>)
public virtual ListController<T> CreateSubcontroller(IEntitySet<T> entitySet, Action<ListOptions> configure)
Parameters
entitySetIEntitySet<T>configureAction<ListOptions>
Returns
CreateSubscreen(IEntitySet<T>)
protected override ListModel<T> CreateSubscreen(IEntitySet<T> entitySet)
Parameters
entitySetIEntitySet<T>
Returns
- ListModel<T>
Delete(T)
public virtual Task Delete(T entity)
Parameters
entityT