Class FieldContext
public class FieldContext : ChromeContext
- Inheritance
-
FieldContext
- Inherited Members
- Extension Methods
Constructors
FieldContext(IServices, IEntity?, Action?, bool, bool, bool, bool, bool)
public FieldContext(IServices services, IEntity? entity, Action? fieldChanged = null, bool isEmbedded = false, bool isLowDensity = false, bool adminMode = false, bool isReadOnly = false, bool isFirstField = false)
Parameters
servicesIServicesentityIEntityfieldChangedActionisEmbeddedboolisLowDensitybooladminModeboolisReadOnlyboolisFirstFieldbool
Properties
IsFirstField
True for the first field rendered in a section. Unlike the other flags this is NOT carried across Derive(bool?, bool?, bool?, IEntity?, bool?, bool); it always resets to false unless explicitly requested .
public bool IsFirstField { get; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
Row
public IEntity? Row { get; }
Property Value
Services
public IServices Services { get; }
Property Value
Methods
Derive(bool?, bool?, bool?)
Layer chrome modifications while staying a field context (preserves Services, Row and IsReadOnly). IsFirstField is intentionally not preserved - it resets to false.
public override ChromeContext Derive(bool? embedded = null, bool? lowDensity = null, bool? adminMode = null)
Parameters
Returns
Derive(bool?, bool?, bool?, IEntity?, bool?, bool)
Return a copy of this field context flagged as the first field in its section.
public FieldContext Derive(bool? embedded = null, bool? lowDensity = null, bool? adminMode = null, IEntity? row = null, bool? isReadOnly = null, bool isFirstField = false)
Parameters
Returns
RaiseFieldChanged()
public void RaiseFieldChanged()