Table of Contents

Class ReloadableField<T>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
public sealed class ReloadableField<T> : NotificationObject, IField<T>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo

Type Parameters

T
Inheritance
ReloadableField<T>
Implements
Inherited Members
Extension Methods

Constructors

ReloadableField(Func<IField<T>>)

public ReloadableField(Func<IField<T>> createInner)

Parameters

createInner Func<IField<T>>

Properties

Content

Templated field content

public IField Content { get; }

Property Value

IField

Error

Gets an error message indicating what is wrong with this object.

public string Error { get; }

Property Value

string

An error message indicating what is wrong with this object. The default is an empty string ("").

HasChanges

public bool HasChanges { get; }

Property Value

bool

HasLabel

True if the field should be labelled inline

public bool HasLabel { get; }

Property Value

bool

HelpText

Optional tooltip, displayed if a label is also displayed

public string? HelpText { get; }

Property Value

string

IsEditable

public bool IsEditable { get; }

Property Value

bool

IsValid

public bool IsValid { get; }

Property Value

bool

IsVisible

True if the field should be displayed

public bool IsVisible { get; }

Property Value

bool

this[string]

Gets the error message for the property with the given name.

public string this[string columnName] { get; }

Parameters

columnName string

The name of the property whose error message to get.

Property Value

string

The error message for the property. The default is an empty string ("").

Label

Caption to display alongside the field content

public string Label { get; }

Property Value

string

Text

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

public string Text { get; }

Property Value

string

Value

The lensed value which this field is modelling

public T Value { get; set; }

Property Value

T

Methods

AddRule(Rule<T>, bool)

public void AddRule(Rule<T> r, bool mayHaveDependencies)

Parameters

r Rule<T>
mayHaveDependencies bool

ClearRules()

public void ClearRules()

Invalidate()

Update the current value on the form, unless it has not been saved to the model, and perform validation

public void Invalidate()

Reload()

public void Reload()