Table of Contents

Class GridValueSectionedCollectionField<T, TView>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
public class GridValueSectionedCollectionField<T, TView> : SectionedCollectionFieldBase<T, GridModel<T>, TView>, IField<IEntitySet<T>>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField where T : IEntity<T>

Type Parameters

T
TView
Inheritance
GridValueSectionedCollectionField<T, TView>
Implements
Derived
Inherited Members
Extension Methods

Constructors

GridValueSectionedCollectionField(ISurface, string, bool, bool, IEntitySet<T>, Action<GridOptions>, IScreenCommand, bool, IEnumerable<IScreenCommand>)

public GridValueSectionedCollectionField(ISurface surface, string label, bool listEditable, bool rowsEditable, IEntitySet<T> boundSet = null, Action<GridOptions> configureGrid = null, IScreenCommand addCommand = null, bool suppressRemoveCommand = false, IEnumerable<IScreenCommand> otherCommands = null)

Parameters

surface ISurface
label string
listEditable bool
rowsEditable bool
boundSet IEntitySet<T>
configureGrid Action<GridOptions>
addCommand IScreenCommand
suppressRemoveCommand bool
otherCommands IEnumerable<IScreenCommand>

Properties

AddButtonText

public string AddButtonText { get; }

Property Value

string

CanAdd

public virtual bool CanAdd { get; }

Property Value

bool

DoAdd

public ShellCommand DoAdd { get; }

Property Value

ShellCommand

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

bool

IsEditable

public override bool IsEditable { get; }

Property Value

bool

Methods

Add()

public virtual Task Add()

Returns

Task

CreateSubcontroller(IEntitySet<T>, Action<GridOptions>)

public virtual GridController<T> CreateSubcontroller(IEntitySet<T> entitySet, Action<GridOptions> configure)

Parameters

entitySet IEntitySet<T>
configure Action<GridOptions>

Returns

GridController<T>

CreateSubscreen(IEntitySet<T>)

protected override GridModel<T> CreateSubscreen(IEntitySet<T> entitySet)

Parameters

entitySet IEntitySet<T>

Returns

GridModel<T>

Delete(T)

public virtual Task Delete(T entity)

Parameters

entity T

Returns

Task