Class LayoutField
A class containing the logic for a field in the layout.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Layouts
Assembly: Aruba.Infrastructure.dll
Syntax
public class LayoutField : LayoutItemBase, INotifyPropertyChanged, IEquatable<LayoutItemBase>, IEquatable<LayoutField>
Constructors
View SourceLayoutField()
Initializes a new instance of the LayoutField class.
Declaration
public LayoutField()
Properties
View SourceFieldDefinition
Gets or sets the Field Definition
Declaration
[JsonIgnore]
public TemplateFieldDefinition FieldDefinition { get; set; }
Property Value
Type | Description |
---|---|
TemplateFieldDefinition |
FieldDisplayName
Gets or sets the field display name.
Declaration
public string FieldDisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
FieldName
Gets or sets the field name.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
string |
FieldNames
Gets or sets a list of the field names.
Declaration
public static List<TemplateFieldDefinition> FieldNames { get; set; }
Property Value
Type | Description |
---|---|
List<TemplateFieldDefinition> |
FieldType
Gets or sets the Field Type.
Declaration
public LayoutFieldType FieldType { get; set; }
Property Value
Type | Description |
---|---|
LayoutFieldType |
IsMultiselectType
Gets or sets a value indicating whether the field is a multi-select type.
Declaration
public bool IsMultiselectType { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(LayoutField)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(LayoutField other)
Parameters
Type | Name | Description |
---|---|---|
LayoutField | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(LayoutItemBase)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(LayoutItemBase other)
Parameters
Type | Name | Description |
---|---|---|
LayoutItemBase | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Overrides
View SourceEquals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGenerateXaml(int)
Generates the Xaml for a field in a layout.
Declaration
public override string GenerateXaml(int gridRow)
Parameters
Type | Name | Description |
---|---|---|
int | gridRow | The grid row this field is on. |
Returns
Type | Description |
---|---|
string | Xaml string. |
Overrides
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
View SourceIsValid()
Check if the Layout Field is valid.
Declaration
public override bool IsValid()
Returns
Type | Description |
---|---|
bool | Whether the layout field is valid. |