Table of Contents

Class ValueField<T, S>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
public class ValueField<T, S> : FieldBase<T>, IField<T>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField where S : Traits

Type Parameters

T
S
Inheritance
ValueField<T, S>
Implements
Derived
Inherited Members
Extension Methods

Constructors

ValueField(ISurface, string, IValue<T>)

public ValueField(ISurface surface, string label, IValue<T> value)

Parameters

surface ISurface
label string
value IValue<T>

ValueField(ISurface, string, T)

public ValueField(ISurface surface, string label, T initialValue)

Parameters

surface ISurface
label string
initialValue T

ValueField(ISurface, IOwnedValue<T>)

public ValueField(ISurface surface, IOwnedValue<T> value)

Parameters

surface ISurface
value IOwnedValue<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

bool

HasValue

public bool HasValue { get; }

Property Value

bool

IsEditable

public override bool IsEditable { get; }

Property Value

bool

MaxLength

public int MaxLength { get; }

Property Value

int

Metadata

public PropertyInfo? Metadata { get; }

Property Value

PropertyInfo

OptionalValue

public Optional<T> OptionalValue { get; set; }

Property Value

Optional<T>

ShowValueWhenDefaulted

public bool ShowValueWhenDefaulted { get; set; }

Property Value

bool

Text

Text summary of the field's value (for on screen summaries)

public override string Text { get; }

Property Value

string

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()