Show / Hide Table of Contents

Class FeatureDataField

The FeatureDataField control is used to display or edit a single field attribute of an Feature.

Inheritance
Object
FeatureDataField
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class FeatureDataField : Control

Constructors

| Improve this Doc View Source

FeatureDataField()

Initializes a new instance of the FeatureDataField class.

Declaration
public FeatureDataField()

Fields

| Improve this Doc View Source

BindingValueProperty

Identifies the BindingValue dependency property.

Declaration
public static readonly DependencyProperty BindingValueProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FeatureProperty

Identifies the Feature dependency property.

Declaration
public static readonly DependencyProperty FeatureProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FieldNameProperty

Identifies the FieldName dependency property.

Declaration
public static readonly DependencyProperty FieldNameProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

InputTemplateProperty

Identifies the InputTemplate dependency property.

Declaration
public static readonly DependencyProperty InputTemplateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ReadOnlyTemplateProperty

Identifies the ReadOnlyTemplate dependency property.

Declaration
public static readonly DependencyProperty ReadOnlyTemplateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

SelectorTemplateProperty

Identifies the SelectorTemplate dependency property.

Declaration
public static readonly DependencyProperty SelectorTemplateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ValidationExceptionProperty

Identifies the BindingValue dependency property.

Declaration
public static readonly DependencyProperty ValidationExceptionProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

BindingValue

Gets or sets the attribute value for field.

Declaration
public object BindingValue { get; set; }
Property Value
Type Description
Object
| Improve this Doc View Source

Feature

Gets or sets the Feature that owns the field attribute the schema and values of fields.

Declaration
public Feature? Feature { get; set; }
Property Value
Type Description
Nullable<Feature>
| Improve this Doc View Source

FieldName

Gets or sets the name of the attribute field that will be used to generate control.

Declaration
public string FieldName { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

InputTemplate

Gets or sets the template used for providing input when field is not bound to a coded-value domain.

Declaration
public DataTemplate? InputTemplate { get; set; }
Property Value
Type Description
Nullable<DataTemplate>
See Also
ReadOnlyTemplate
SelectorTemplate
| Improve this Doc View Source

IsReadOnly

Gets or sets a value indicating whether generated control will be read-only.

Declaration
public bool IsReadOnly { get; set; }
Property Value
Type Description
Boolean
Remarks

Any field that is editable as defined by the feature schema can be made read-only. Any field that is read-only as defined by the feature schema cannot be made editable.

| Improve this Doc View Source

ReadOnlyTemplate

Gets or sets the template used when IsReadOnly is true or field is read-only as defined by field schema.

Declaration
public DataTemplate? ReadOnlyTemplate { get; set; }
Property Value
Type Description
Nullable<DataTemplate>
See Also
InputTemplate
SelectorTemplate
| Improve this Doc View Source

SelectorTemplate

Gets or sets the template used when field is bound to a coded-value domain.

Declaration
public DataTemplate? SelectorTemplate { get; set; }
Property Value
Type Description
Nullable<DataTemplate>
See Also
ReadOnlyTemplate
InputTemplate
| Improve this Doc View Source

ValidationException

Gets the validation exception.

Declaration
public Exception ValidationException { get; }
Property Value
Type Description
Exception
Remarks

Default validation is handled based on field schema. Custom validation may be added by subscribing to ValueChanging event.

Methods

| Improve this Doc View Source

OnApplyTemplate()

Declaration
protected override void OnApplyTemplate()
| Improve this Doc View Source

OnValueChanged(Object, Object)

Called when an attribute value has changed.

Declaration
protected void OnValueChanged(object oldValue, object newValue)
Parameters
Type Name Description
Object oldValue

The old attribute value.

Object newValue

The new updated attribute value.

See Also
ValueChanged
| Improve this Doc View Source

OnValueChanging(Object, Object)

Called when an attribute value is about to change.

Declaration
protected void OnValueChanging(object oldValue, object newValue)
Parameters
Type Name Description
Object oldValue

The old attribute value.

Object newValue

The new updated attribute value.

Remarks

To trigger a validation exception, throw an exception in this method.

See Also
ValueChanging

Events

| Improve this Doc View Source

ValueChanged

Occurs when the field attribute value has changed and committed back to the feature.

Declaration
public event EventHandler<AttributeValueChangedEventArgs> ValueChanged
Event Type
Type Description
EventHandler<AttributeValueChangedEventArgs>
See Also
OnValueChanged(Object, Object)
| Improve this Doc View Source

ValueChanging

Occurs when the field attribute value has changed but has not yet been committed back to the feature.

Declaration
public event EventHandler<AttributeValueChangedEventArgs> ValueChanging
Event Type
Type Description
EventHandler<AttributeValueChangedEventArgs>
Remarks

This event may be used to provide custom validation by throwing an exception in the event handler.

See Also
OnValueChanging(Object, Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX