Class ValueField<T, S>
public class ValueField<T, S> : FieldBase<T>, IField<T>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField where S : Traits
Type Parameters
TS
- Inheritance
-
FieldBase<T>ValueField<T, S>
- Implements
-
IField<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
ValueField(ISurface, string, IValue<T>)
public ValueField(ISurface surface, string label, IValue<T> value)
Parameters
ValueField(ISurface, string, T)
public ValueField(ISurface surface, string label, T initialValue)
Parameters
ValueField(ISurface, IOwnedValue<T>)
public ValueField(ISurface surface, IOwnedValue<T> value)
Parameters
surfaceISurfacevalueIOwnedValue<T>
Properties
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
HasValue
public bool HasValue { get; }
Property Value
IsEditable
public override bool IsEditable { get; }
Property Value
MaxLength
public int MaxLength { get; }
Property Value
Metadata
public PropertyInfo? Metadata { get; }
Property Value
OptionalValue
public Optional<T> OptionalValue { get; set; }
Property Value
- Optional<T>
ShowValueWhenDefaulted
public bool ShowValueWhenDefaulted { get; set; }
Property Value
Text
Text summary of the field's value (for on screen summaries)
public override string Text { get; }
Property Value
Value
The lensed value which this field is modelling
public override T Value { get; set; }
Property Value
- T
Methods
OnRulesChanged()
protected override void OnRulesChanged()
SetViewFromModelAndNotifyInternal()
protected override void SetViewFromModelAndNotifyInternal()