Class FeatureDataField
The FeatureDataField control is used to display or edit a single field attribute of an Feature.
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class FeatureDataField : Control
Constructors
| Improve this Doc View SourceFeatureDataField()
Initializes a new instance of the FeatureDataField class.
Declaration
public FeatureDataField()
Fields
| Improve this Doc View SourceBindingValueProperty
Identifies the BindingValue dependency property.
Declaration
public static readonly DependencyProperty BindingValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FeatureProperty
Identifies the Feature dependency property.
Declaration
public static readonly DependencyProperty FeatureProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FieldNameProperty
Identifies the FieldName dependency property.
Declaration
public static readonly DependencyProperty FieldNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
InputTemplateProperty
Identifies the InputTemplate dependency property.
Declaration
public static readonly DependencyProperty InputTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ReadOnlyTemplateProperty
Identifies the ReadOnlyTemplate dependency property.
Declaration
public static readonly DependencyProperty ReadOnlyTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SelectorTemplateProperty
Identifies the SelectorTemplate dependency property.
Declaration
public static readonly DependencyProperty SelectorTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValidationExceptionProperty
Identifies the BindingValue dependency property.
Declaration
public static readonly DependencyProperty ValidationExceptionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBindingValue
Gets or sets the attribute value for field.
Declaration
public object BindingValue { get; set; }
Property Value
Type | Description |
---|---|
Object |
Feature
Gets or sets the
Declaration
public Feature? Feature { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Feature> |
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 |
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
| Improve this Doc View SourceIsReadOnly
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.
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
| Improve this Doc View SourceSelectorTemplate
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
| Improve this Doc View SourceValidationException
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 SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
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
| Improve this Doc View SourceOnValueChanging(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
Events
| Improve this Doc View SourceValueChanged
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
| Improve this Doc View SourceValueChanging
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.