Class ValueSectionedReferenceField<T>
public class ValueSectionedReferenceField<T> : FieldBase<T?, ValueSectionedReferenceView>, IField<T?>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo where T : IEntity<T>
Type Parameters
T
- Inheritance
-
FieldBase<T>ValueSectionedReferenceField<T>
- Implements
-
IField<T>
- 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
surfaceISurfacelabelstringcontentEditableboolboundLensIOwnedValue<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
ValueSectionedReferenceField(ISurface, string, IOwnedValue<T?>, ValueSectionedReferenceOptions<T>?)
public ValueSectionedReferenceField(ISurface surface, string label, IOwnedValue<T?> boundLens, ValueSectionedReferenceOptions<T>? options = null)
Parameters
surfaceISurfacelabelstringboundLensIOwnedValue<T>optionsValueSectionedReferenceOptions<T>
ValueSectionedReferenceField(ISurface, EntityReferenceProperty<T>, ValueSectionedReferenceOptions<T>?)
public ValueSectionedReferenceField(ISurface surface, EntityReferenceProperty<T> boundLens, ValueSectionedReferenceOptions<T>? options = null)
Parameters
surfaceISurfaceboundLensEntityReferenceProperty<T>optionsValueSectionedReferenceOptions<T>
Properties
AddButtonText
public string AddButtonText { get; set; }
Property Value
CanCreate
public bool CanCreate { get; }
Property Value
CanDelete
public bool CanDelete { get; }
Property Value
DoCreate
public ICommand DoCreate { get; }
Property Value
DoDelete
public ICommand DoDelete { get; }
Property Value
DoOpen
public ICommand DoOpen { get; }
Property Value
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
HasLabel
True if the field should be labelled inline
public override bool HasLabel { get; }
Property Value
IsContentEditable
public bool? IsContentEditable { get; }
Property Value
- bool?
IsEditable
public override bool IsEditable { get; }
Property Value
IsLoading
public bool IsLoading { get; }
Property Value
IsVisible
True if the field should be displayed
public override bool IsVisible { get; }
Property Value
Metadata
public PropertyInfo? Metadata { get; }
Property Value
RemoveButtonText
public string RemoveButtonText { get; set; }
Property Value
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
SetViewFromModelAndNotifyInternal()
protected override void SetViewFromModelAndNotifyInternal()