Table of Contents

Class ModelField

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll

Exposes an arbitrary IModel as an IFieldModel. Probably should not be used.

public sealed class ModelField : NotificationObject, IField, IModel, INotifyPropertyChanged, IDataErrorInfo
Inheritance
ModelField
Implements
Inherited Members
Extension Methods

Constructors

ModelField(IModel, string)

public ModelField(IModel model, string label)

Parameters

model IModel
label string

ModelField(IScreenModel)

public ModelField(IScreenModel model)

Parameters

model IScreenModel

Properties

Content

Templated field content

public IField Content { get; }

Property Value

IField

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

Label

Caption to display alongside the field content

public string Label { get; }

Property Value

string

Subscreen

public IModel Subscreen { get; }

Property Value

IModel

Text

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

public string Text { get; }

Property Value

string

Methods

Invalidate()

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

public void Invalidate()