Class WrappingFieldBase
[JsonConverter(typeof(FieldJsonConverter))]
public abstract class WrappingFieldBase : NotificationObject, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField
- Inheritance
-
WrappingFieldBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
WrappingFieldBase(IField)
public WrappingFieldBase(IField inner)
Parameters
innerIField
Properties
Content
Templated field content
public IField Content { get; }
Property Value
HasChanges
public virtual bool HasChanges { get; }
Property Value
HasLabel
True if the field should be labelled inline
public virtual bool HasLabel { get; }
Property Value
HelpText
Optional tooltip, displayed if a label is also displayed
public virtual string? HelpText { get; }
Property Value
IsEditable
public virtual bool IsEditable { get; }
Property Value
IsValid
public virtual bool IsValid { get; }
Property Value
IsVisible
True if the field should be displayed
public virtual bool IsVisible { get; }
Property Value
Label
Caption to display alongside the field content
public virtual string Label { get; }
Property Value
Text
Text summary of the field's value (for on screen summaries)
public string Text { get; }
Property Value
Methods
Invalidate()
Update the current value on the form, unless it has not been saved to the model, and perform validation
public void Invalidate()
SetFindings(IReadOnlyList<ValidationFinding>, IReadOnlyList<ValidationFinding>)
Display findings from a ValidationSession. anchored are pre-matched
to this field's bound property with display policy applied, and merge with the field's own rules;
descendants are the policy-filtered findings for the wider graph, which collection fields
forward to their subscreens. Wrapping fields forward both to their content.
public void SetFindings(IReadOnlyList<ValidationFinding> anchored, IReadOnlyList<ValidationFinding> descendants)
Parameters
anchoredIReadOnlyList<ValidationFinding>descendantsIReadOnlyList<ValidationFinding>