Class FeatureFormView
A visual feature editor form controlled by a FeatureForm definition.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class FeatureFormView : TemplatedView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Remarks
To use the camera to capture images for attachments, the corerct permissions must be set on your application.
Android:
Add the following to Android's AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
</queries>
iOS:
Add the following to iOS's Info.plist:
<key>NSCameraUsageDescription</key>
<string>Adding attachments</string>
If these settings are not added, only file browsing will be enabled.
Constructors
Name | Description |
---|---|
FeatureFormView() | Initializes a new instance of the FeatureFormView class. |
Fields
Name | Description |
---|---|
ErrorsVisibilityProperty | Identifies the ErrorsVisibility dependency property. |
FeatureFormProperty | Identifies the FeatureForm dependency property. |
IsNavigationEnabledProperty | Identifies the IsNavigationEnabled dependency property. |
ItemsViewName | Template name of the IBindableLayout items layout view. |
VerticalScrollBarVisibilityProperty | Identifies the VerticalScrollBarVisibility dependency property. |
Properties
Name | Description |
---|---|
CurrentFeatureForm | Gets the currently active feature form being edited |
DiscardEditsCommand | Discards any pending edits to the currently active Feature Form, if any edits have been made |
ErrorsVisibility | Gets or sets the associated PopupManager which contains popup and sketch editor. |
FeatureForm | Gets or sets the associated FeatureForm which contains the form. |
FinishEditingCommand | Command for calling FinishEditingAsync(bool) and applying edits to the currently active Feature Form if all fields are valid. |
IsNavigationEnabled | Gets or sets a value indicating whether to allow navigating to a different feature |
IsValid | Gets a value indicating whether the CurrentFeatureForm has any validation errors. |
VerticalScrollBarVisibility | Gets or sets the vertical scrollbar visibility of the scrollviewer below the title. |
Methods
Name | Description |
---|---|
DiscardEditsAsync() | Discards edits to all elements, refreshes any pending expressions and restores attachment list for the CurrentFeatureForm . |
FinishEditingAsync() | Saves edits made using the FeatureForm to the database for the CurrentFeatureForm. |
FinishEditingAsync(bool) | Saves edits made using the FeatureForm to the database for the CurrentFeatureForm if there are not errors,
otherwise scroll to the first error if |
OnApplyTemplate() | |
ScrollTo(FormElement) | Scrolls to the specified form element |
ScrollToFirstError() | Scrolls to the first element with a visible validation error |
Events
Name | Description |
---|---|
BarcodeButtonClicked | Raised when the Barcode Icon in a barcode element is clicked. |
FormAttachmentClicked | Raised when a feature form attachment is clicked |