Table of Contents

Class ValueSectionedReferenceField<T>

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
public class ValueSectionedReferenceField<T> : FieldBase<T?, ValueSectionedReferenceView>, IField<T?>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo where T : IEntity<T>

Type Parameters

T
Inheritance
ValueSectionedReferenceField<T>
Implements
Inherited Members
Extension Methods

Constructors

ValueSectionedReferenceField(ISurface, string, bool, IOwnedValue<T?>?)

[Obsolete("Use one of the constructors with an options parameter")]
public ValueSectionedReferenceField(ISurface surface, string label, bool contentEditable, IOwnedValue<T?>? boundLens = null)

Parameters

surface ISurface
label string
contentEditable bool
boundLens IOwnedValue<T>

ValueSectionedReferenceField(ISurface, string, bool, T)

[Obsolete("Use one of the constructors with an options parameter")]
public ValueSectionedReferenceField(ISurface surface, string label, bool contentEditable, T initialValue)

Parameters

surface ISurface
label string
contentEditable bool
initialValue T

ValueSectionedReferenceField(ISurface, string, IOwnedValue<T?>, ValueSectionedReferenceOptions<T>?)

public ValueSectionedReferenceField(ISurface surface, string label, IOwnedValue<T?> boundLens, ValueSectionedReferenceOptions<T>? options = null)

Parameters

surface ISurface
label string
boundLens IOwnedValue<T>
options ValueSectionedReferenceOptions<T>

ValueSectionedReferenceField(ISurface, EntityReferenceProperty<T>, ValueSectionedReferenceOptions<T>?)

public ValueSectionedReferenceField(ISurface surface, EntityReferenceProperty<T> boundLens, ValueSectionedReferenceOptions<T>? options = null)

Parameters

surface ISurface
boundLens EntityReferenceProperty<T>
options ValueSectionedReferenceOptions<T>

Properties

AddButtonText

public string AddButtonText { get; set; }

Property Value

string

CanCreate

public bool CanCreate { get; }

Property Value

bool

CanDelete

public bool CanDelete { get; }

Property Value

bool

DoCreate

public ICommand DoCreate { get; }

Property Value

ICommand

DoDelete

public ICommand DoDelete { get; }

Property Value

ICommand

DoOpen

public ICommand DoOpen { get; }

Property Value

ICommand

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

HasLabel

True if the field should be labelled inline

public override bool HasLabel { get; }

Property Value

bool

IsContentEditable

public bool? IsContentEditable { get; }

Property Value

bool?

IsEditable

public override bool IsEditable { get; }

Property Value

bool

IsLoading

public bool IsLoading { get; }

Property Value

bool

IsVisible

True if the field should be displayed

public override bool IsVisible { get; }

Property Value

bool

Metadata

public PropertyInfo? Metadata { get; }

Property Value

PropertyInfo

RemoveButtonText

public string RemoveButtonText { get; set; }

Property Value

string

Subscreen

public ContentModel<T>? Subscreen { get; }

Property Value

ContentModel<T>

Value

The lensed value which this field is modelling

public override T? Value { get; set; }

Property Value

T

Methods

Create()

public void Create()

CreateSubscreen()

protected virtual ContentModel<T> CreateSubscreen()

Returns

ContentModel<T>

DeleteAsync()

public Task DeleteAsync()

Returns

Task

SetViewFromModelAndNotifyInternal()

protected override void SetViewFromModelAndNotifyInternal()