Class GridRowBase<T>
public abstract class GridRowBase<T> : NotificationObject, INotifyPropertyChanged where T : IEntity
Type Parameters
T
- Inheritance
-
GridRowBase<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
GridRowBase()
public GridRowBase()
Fields
SharedChangeExecutor
protected NotificationExecutor SharedChangeExecutor
Field Value
Properties
BackgroundBrush
public virtual Brush BackgroundBrush { get; }
Property Value
CellCommands
public ObservableCollection<IInternalCommand> CellCommands { get; }
Property Value
CustomRowCommands
public CommandsMenuModel CustomRowCommands { get; set; }
Property Value
CustomRowCommandsInHamburger
public bool? CustomRowCommandsInHamburger { get; set; }
Property Value
- bool?
Entity
The entity of a list row screen can be unset if the row is still loading
public Optional<T> Entity { get; }
Property Value
- Optional<T>
EntityTask
public Task<T> EntityTask { get; }
Property Value
- Task<T>
FallbackText
public string FallbackText { get; set; }
Property Value
HasChanges
public bool HasChanges { get; }
Property Value
HasVisibleRowCommands
True when this row has at least one custom command that is currently visible. The row-commands affordance (inline buttons or hamburger) is hidden when this is false.
public bool HasVisibleRowCommands { get; set; }
Property Value
IsEditable
public bool IsEditable { get; }
Property Value
IsEditableRW
public bool IsEditableRW { get; set; }
Property Value
IsSubscreen
public bool IsSubscreen { get; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
RowCommands
public ObservableCollection<IScreenCommand> RowCommands { get; }
Property Value
RowCommandsRequireEditableContext
True when every visible custom command requires an editable context, so the affordance is also hidden while the ambient context is not editable.
public bool RowCommandsRequireEditableContext { get; set; }
Property Value
RowFindingBrush
Fill for the row indicator: red when the row's entity has an entity-level error, yellow for a warning.
public Brush? RowFindingBrush { get; }
Property Value
RowFindingText
Combined text of the entity-level findings for this row's entity, for the row indicator's tooltip.
public string? RowFindingText { get; }
Property Value
SharedLookupContext
public IEntityContext SharedLookupContext { get; set; }
Property Value
Surface
public ISurface Surface { get; set; }
Property Value
Methods
AddPropertyChangeHandlers()
public IDisposable AddPropertyChangeHandlers()
Returns
GetCustomFields()
protected virtual IEnumerable<KeyValuePair<string, IField>> GetCustomFields()
Returns
GetGeneratedFields()
protected abstract IEnumerable<KeyValuePair<string, IField>> GetGeneratedFields()
Returns
OnEntityChanged()
protected virtual void OnEntityChanged()
SetFindings(IReadOnlyList<ValidationFinding>)
Displays the findings whose entity this row presents: property-anchored findings go to the matching fields, and entity-level findings become the row indicator.
public void SetFindings(IReadOnlyList<ValidationFinding> findings)
Parameters
findingsIReadOnlyList<ValidationFinding>
Events
EntityChanged
public event Action? EntityChanged